Make methods in InteractsWithDatabase protected

This commit is contained in:
Bosun Egberinde 2024-10-23 12:24:12 +02:00 committed by GitHub
parent f6dabc8889
commit 4db4f01f08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,12 +20,12 @@ use PHPUnit\Framework\Constraint\LogicalNot;
trait InteractsWithDatabase
{
private function assertDatabaseHas(string $table, array $data, ?string $connection = null): void
protected function assertDatabaseHas(string $table, array $data, ?string $connection = null): void
{
$this->assertThat($data, new HasInDatabase($this->getConnection($connection), $table));
}
private function assertDatabaseMissing(string $table, array $data, ?string $connection = null): void
protected function assertDatabaseMissing(string $table, array $data, ?string $connection = null): void
{
$this->assertThat($data, new LogicalNot(new HasInDatabase($this->getConnection($connection), $table)));
}