Skip to content

Commit e419725

Browse files
authored
chore: fix assertDatabaseCount
1 parent c5749f8 commit e419725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Concerns/InteractsWithDatabase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ trait InteractsWithDatabase
2323

2424
protected function assertDatabaseCount(string $table, int $count, ?string $connection = null): void
2525
{
26-
$this->assertThat([], new HasInDatabase($this->getConnection($connection), $table, $count), $table);
26+
$this->assertEquals($count, $this->getConnection($connection)->table($table)->count());
2727
}
2828

2929
protected function assertDatabaseHas(string $table, array $data, ?string $connection = null): void

0 commit comments

Comments
 (0)