|
@@ -634,7 +634,7 @@ SQL;
|
|
|
$connection = $this->getMockBuilder('Cake\Database\Connection')
|
|
$connection = $this->getMockBuilder('Cake\Database\Connection')
|
|
|
->disableOriginalConstructor()
|
|
->disableOriginalConstructor()
|
|
|
->getMock();
|
|
->getMock();
|
|
|
- $connection->expects($this->any())->method('driver')
|
|
|
|
|
|
|
+ $connection->expects($this->any())->method('getDriver')
|
|
|
->will($this->returnValue($driver));
|
|
->will($this->returnValue($driver));
|
|
|
|
|
|
|
|
$table = new TableSchema('posts');
|
|
$table = new TableSchema('posts');
|
|
@@ -654,7 +654,7 @@ SQL;
|
|
|
$connection = $this->getMockBuilder('Cake\Database\Connection')
|
|
$connection = $this->getMockBuilder('Cake\Database\Connection')
|
|
|
->disableOriginalConstructor()
|
|
->disableOriginalConstructor()
|
|
|
->getMock();
|
|
->getMock();
|
|
|
- $connection->expects($this->any())->method('driver')
|
|
|
|
|
|
|
+ $connection->expects($this->any())->method('getDriver')
|
|
|
->will($this->returnValue($driver));
|
|
->will($this->returnValue($driver));
|
|
|
|
|
|
|
|
$table = new TableSchema('posts');
|
|
$table = new TableSchema('posts');
|
|
@@ -849,7 +849,7 @@ SQL;
|
|
|
$connection = $this->getMockBuilder('Cake\Database\Connection')
|
|
$connection = $this->getMockBuilder('Cake\Database\Connection')
|
|
|
->disableOriginalConstructor()
|
|
->disableOriginalConstructor()
|
|
|
->getMock();
|
|
->getMock();
|
|
|
- $connection->expects($this->any())->method('driver')
|
|
|
|
|
|
|
+ $connection->expects($this->any())->method('getDriver')
|
|
|
->will($this->returnValue($driver));
|
|
->will($this->returnValue($driver));
|
|
|
|
|
|
|
|
$table = (new TableSchema('articles'))->addColumn('id', [
|
|
$table = (new TableSchema('articles'))->addColumn('id', [
|
|
@@ -901,7 +901,7 @@ SQL;
|
|
|
$connection = $this->getMockBuilder('Cake\Database\Connection')
|
|
$connection = $this->getMockBuilder('Cake\Database\Connection')
|
|
|
->disableOriginalConstructor()
|
|
->disableOriginalConstructor()
|
|
|
->getMock();
|
|
->getMock();
|
|
|
- $connection->expects($this->any())->method('driver')
|
|
|
|
|
|
|
+ $connection->expects($this->any())->method('getDriver')
|
|
|
->will($this->returnValue($driver));
|
|
->will($this->returnValue($driver));
|
|
|
$table = (new TableSchema('schema_articles'))->addColumn('id', [
|
|
$table = (new TableSchema('schema_articles'))->addColumn('id', [
|
|
|
'type' => 'integer',
|
|
'type' => 'integer',
|
|
@@ -923,7 +923,7 @@ SQL;
|
|
|
$connection = $this->getMockBuilder('Cake\Database\Connection')
|
|
$connection = $this->getMockBuilder('Cake\Database\Connection')
|
|
|
->disableOriginalConstructor()
|
|
->disableOriginalConstructor()
|
|
|
->getMock();
|
|
->getMock();
|
|
|
- $connection->expects($this->any())->method('driver')
|
|
|
|
|
|
|
+ $connection->expects($this->any())->method('getDriver')
|
|
|
->will($this->returnValue($driver));
|
|
->will($this->returnValue($driver));
|
|
|
|
|
|
|
|
$table = (new TableSchema('articles_tags'))
|
|
$table = (new TableSchema('articles_tags'))
|
|
@@ -991,7 +991,7 @@ SQL;
|
|
|
$connection = $this->getMockBuilder('Cake\Database\Connection')
|
|
$connection = $this->getMockBuilder('Cake\Database\Connection')
|
|
|
->disableOriginalConstructor()
|
|
->disableOriginalConstructor()
|
|
|
->getMock();
|
|
->getMock();
|
|
|
- $connection->expects($this->any())->method('driver')
|
|
|
|
|
|
|
+ $connection->expects($this->any())->method('getDriver')
|
|
|
->will($this->returnValue($driver));
|
|
->will($this->returnValue($driver));
|
|
|
|
|
|
|
|
$table = new TableSchema('articles');
|
|
$table = new TableSchema('articles');
|
|
@@ -1011,7 +1011,7 @@ SQL;
|
|
|
$connection = $this->getMockBuilder('Cake\Database\Connection')
|
|
$connection = $this->getMockBuilder('Cake\Database\Connection')
|
|
|
->disableOriginalConstructor()
|
|
->disableOriginalConstructor()
|
|
|
->getMock();
|
|
->getMock();
|
|
|
- $connection->expects($this->any())->method('driver')
|
|
|
|
|
|
|
+ $connection->expects($this->any())->method('getDriver')
|
|
|
->will($this->returnValue($driver));
|
|
->will($this->returnValue($driver));
|
|
|
|
|
|
|
|
$statement = $this->getMockBuilder('\PDOStatement')
|
|
$statement = $this->getMockBuilder('\PDOStatement')
|
|
@@ -1043,7 +1043,7 @@ SQL;
|
|
|
$connection = $this->getMockBuilder('Cake\Database\Connection')
|
|
$connection = $this->getMockBuilder('Cake\Database\Connection')
|
|
|
->disableOriginalConstructor()
|
|
->disableOriginalConstructor()
|
|
|
->getMock();
|
|
->getMock();
|
|
|
- $connection->expects($this->any())->method('driver')
|
|
|
|
|
|
|
+ $connection->expects($this->any())->method('getDriver')
|
|
|
->will($this->returnValue($driver));
|
|
->will($this->returnValue($driver));
|
|
|
|
|
|
|
|
$statement = $this->getMockBuilder('\PDOStatement')
|
|
$statement = $this->getMockBuilder('\PDOStatement')
|