From 3cba517358bc980cd63b5a4a6c21978ec75f9814 Mon Sep 17 00:00:00 2001 From: Bosun Egberinde <15146515+bosunski@users.noreply.github.com> Date: Wed, 23 Oct 2024 12:24:12 +0200 Subject: [PATCH] Make methods in `InteractsWithDatabase` protected --- src/Concerns/InteractsWithDatabase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Concerns/InteractsWithDatabase.php b/src/Concerns/InteractsWithDatabase.php index e828e63..df3ae57 100644 --- a/src/Concerns/InteractsWithDatabase.php +++ b/src/Concerns/InteractsWithDatabase.php @@ -20,12 +20,12 @@ 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))); }