mirror of
https://github.com/danog/sql.git
synced 2024-11-30 04:29:18 +01:00
Fix tests
This commit is contained in:
parent
e257237b61
commit
cf131fa9f0
@ -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')
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user