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 c5749f8 commit e419725Copy full SHA for e419725
src/Concerns/InteractsWithDatabase.php
@@ -23,7 +23,7 @@ trait InteractsWithDatabase
23
24
protected function assertDatabaseCount(string $table, int $count, ?string $connection = null): void
25
{
26
- $this->assertThat([], new HasInDatabase($this->getConnection($connection), $table, $count), $table);
+ $this->assertEquals($count, $this->getConnection($connection)->table($table)->count());
27
}
28
29
protected function assertDatabaseHas(string $table, array $data, ?string $connection = null): void
0 commit comments