This commit is contained in:
Marcel Pociot
2020-05-03 00:21:16 +02:00
parent c717683634
commit 72d33b1b70
19 changed files with 408 additions and 103 deletions

View File

@@ -46,4 +46,13 @@ abstract class TestCase extends \Tests\TestCase
$this->assertGreaterThanOrEqual(1, count($result->rows));
}
protected function assertDatabaseHasNoResults($query)
{
$database = app(DatabaseInterface::class);
$result = $this->await($database->query($query));
$this->assertEmpty($result->rows);
}
}