mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-29 18:27:44 +08:00
Make methods in InteractsWithDatabase
protected
This commit is contained in:
parent
f6dabc8889
commit
4db4f01f08
@ -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)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user