We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6d67ae commit f3f0375Copy full SHA for f3f0375
src/Asserts/DatabaseAsserts.php
@@ -2,8 +2,20 @@
2
3
namespace Illuminated\Testing\Asserts;
4
5
+use Illuminate\Support\Facades\Schema;
6
+
7
trait DatabaseAsserts
8
{
9
+ protected function seeDatabaseTable($table)
10
+ {
11
+ $this->assertTrue(Schema::hasTable($table), "Failed asserting that database has table `{$table}`.");
12
+ }
13
14
+ protected function dontSeeDatabaseTable($table)
15
16
+ $this->assertFalse(Schema::hasTable($table), "Failed asserting that database not has table `{$table}`.");
17
18
19
protected function seeInDatabaseMany($table, array $rows)
20
21
foreach ($rows as $row) {
0 commit comments