Skip to content

Commit

Permalink
Make methods in InteractsWithDatabase protected
Browse files Browse the repository at this point in the history
  • Loading branch information
bosunski authored Oct 23, 2024
1 parent ad2eaee commit 3cba517
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Concerns/InteractsWithDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}
Expand Down

0 comments on commit 3cba517

Please sign in to comment.