Skip to content

Commit

Permalink
fix krowinski#115 for mysql 8.4.0 phpunit test
Browse files Browse the repository at this point in the history
  • Loading branch information
hetao29 committed May 8, 2024
1 parent c5b38e5 commit 6ca015c
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions tests/Unit/Repository/MySQLRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,14 @@ public function testShouldIsCheckSum(): void

public function testShouldGetVersion(): void
{
$expected = [
[
'Value' => 'foo',
],
[
'Value' => 'bar',
],
[
'Value' => '123',
],
];
$expected = [
'Value' => 'version',
];

$this->connection->method('fetchAllAssociative')
->willReturn($expected);
$this->connection->method('fetchAssociative')
->willReturn($expected);

self::assertEquals('foobar123', $this->mySQLRepositoryTest->getVersion());
self::assertEquals('version', $this->mySQLRepositoryTest->getVersion());
}

public function testShouldGetMasterStatus(): void
Expand Down

0 comments on commit 6ca015c

Please sign in to comment.