mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
test: Fix for MysqlTest, a new test error in PHP 8.0
Co-authored-by: Kenshin Okinaka <okinakak@yahoo.co.jp>
This commit is contained in:
parent
40d5f32516
commit
e0101949e4
1 changed files with 2 additions and 2 deletions
|
@ -441,7 +441,7 @@ class MysqlTest extends CakeTestCase {
|
|||
);
|
||||
|
||||
$mockDbo->expects($this->once())->method('getVersion')->will($this->returnValue('4.1'));
|
||||
$resultMock = $this->getMock('PDOStatement', array('fetch'));
|
||||
$resultMock = $this->getMock('PDOStatement', array('fetch', 'closeCursor'));
|
||||
$mockDbo->expects($this->once())
|
||||
->method('_execute')
|
||||
->with('SHOW INDEX FROM ' . $name)
|
||||
|
@ -906,7 +906,7 @@ SQL;
|
|||
* @return void
|
||||
*/
|
||||
public function testDescribeHandleCurrentTimestampDatetime() {
|
||||
$mysqlVersion = $this->Dbo->query('SELECT VERSION() as version', array('log' => false));
|
||||
$mysqlVersion = $this->Dbo->query('SELECT VERSION() as version');
|
||||
$this->skipIf(version_compare($mysqlVersion[0][0]['version'], '5.6.0', '<'));
|
||||
|
||||
$name = $this->Dbo->fullTableName('timestamp_default_values');
|
||||
|
|
Loading…
Reference in a new issue