Fix tests

This commit is contained in:
Niklas Keller 2018-09-13 20:54:37 +02:00
parent e257237b61
commit cf131fa9f0
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ class AbstractPoolTest extends TestCase
$connector->method('connect')
->willReturnCallback(function () use ($now): Promise {
$link = $this->createMock(Link::class);
$link->method('lastUsedAt')
$link->method('getLastUsedAt')
->willReturn($now);
$link->method('isAlive')

View File

@ -25,7 +25,7 @@ class StatementPoolTest extends TestCase
->willReturn(true);
$statement->method('getQuery')
->willReturn('SELECT 1');
$statement->method('lastUsedAt')
$statement->method('getLastUsedAt')
->willReturn(\time());
$statement->expects($this->once())
->method('execute');
@ -61,7 +61,7 @@ class StatementPoolTest extends TestCase
->willReturn(true);
$statement->method('getQuery')
->willReturn('SELECT 1');
$statement->method('lastUsedAt')
$statement->method('getLastUsedAt')
->willReturn(\time());
$statement->expects($this->once())
->method('execute');