diff --git a/tests/Unit/Repository/MySQLRepositoryTest.php b/tests/Unit/Repository/MySQLRepositoryTest.php index 5ad88ac..d126124 100644 --- a/tests/Unit/Repository/MySQLRepositoryTest.php +++ b/tests/Unit/Repository/MySQLRepositoryTest.php @@ -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