Fix tests
This commit is contained in:
parent
e257237b61
commit
cf131fa9f0
@ -34,7 +34,7 @@ class AbstractPoolTest extends TestCase
|
|||||||
$connector->method('connect')
|
$connector->method('connect')
|
||||||
->willReturnCallback(function () use ($now): Promise {
|
->willReturnCallback(function () use ($now): Promise {
|
||||||
$link = $this->createMock(Link::class);
|
$link = $this->createMock(Link::class);
|
||||||
$link->method('lastUsedAt')
|
$link->method('getLastUsedAt')
|
||||||
->willReturn($now);
|
->willReturn($now);
|
||||||
|
|
||||||
$link->method('isAlive')
|
$link->method('isAlive')
|
||||||
|
@ -25,7 +25,7 @@ class StatementPoolTest extends TestCase
|
|||||||
->willReturn(true);
|
->willReturn(true);
|
||||||
$statement->method('getQuery')
|
$statement->method('getQuery')
|
||||||
->willReturn('SELECT 1');
|
->willReturn('SELECT 1');
|
||||||
$statement->method('lastUsedAt')
|
$statement->method('getLastUsedAt')
|
||||||
->willReturn(\time());
|
->willReturn(\time());
|
||||||
$statement->expects($this->once())
|
$statement->expects($this->once())
|
||||||
->method('execute');
|
->method('execute');
|
||||||
@ -61,7 +61,7 @@ class StatementPoolTest extends TestCase
|
|||||||
->willReturn(true);
|
->willReturn(true);
|
||||||
$statement->method('getQuery')
|
$statement->method('getQuery')
|
||||||
->willReturn('SELECT 1');
|
->willReturn('SELECT 1');
|
||||||
$statement->method('lastUsedAt')
|
$statement->method('getLastUsedAt')
|
||||||
->willReturn(\time());
|
->willReturn(\time());
|
||||||
$statement->expects($this->once())
|
$statement->expects($this->once())
|
||||||
->method('execute');
|
->method('execute');
|
||||||
|
Loading…
Reference in New Issue
Block a user