|
|
@@ -974,17 +974,12 @@ SQL;
|
|
|
protected function _getMockedDriver()
|
|
|
{
|
|
|
$driver = new \Cake\Database\Driver\Sqlite();
|
|
|
- $mock = $this->getMock('FakePdo', ['quote', 'quoteIdentifier', 'prepare']);
|
|
|
+ $mock = $this->getMock('FakePdo', ['quote', 'prepare']);
|
|
|
$mock->expects($this->any())
|
|
|
->method('quote')
|
|
|
->will($this->returnCallback(function ($value) {
|
|
|
return '"' . $value . '"';
|
|
|
}));
|
|
|
- $mock->expects($this->any())
|
|
|
- ->method('quoteIdentifier')
|
|
|
- ->will($this->returnCallback(function ($value) {
|
|
|
- return '"' . $value . '"';
|
|
|
- }));
|
|
|
$driver->connection($mock);
|
|
|
return $driver;
|
|
|
}
|