Skip to content

Commit

Permalink
fix more usage of deprecated driver() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 29, 2017
1 parent 50d5416 commit d3a93bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TestCase/Database/Schema/MysqlSchemaTest.php
Expand Up @@ -271,7 +271,7 @@ protected function _createTables($connection)
SQL;
$connection->execute($table);

if ($connection->driver()->supportsNativeJson()) {
if ($connection->getDriver()->supportsNativeJson()) {
$table = <<<SQL
CREATE TABLE schema_json (
id INT(11) PRIMARY KEY AUTO_INCREMENT,
Expand Down Expand Up @@ -1287,7 +1287,7 @@ public function testDescribeJson()
{
$connection = ConnectionManager::get('test');
$this->_createTables($connection);
$this->skipIf(!$connection->driver()->supportsNativeJson(), 'Does not support native json');
$this->skipIf(!$connection->getDriver()->supportsNativeJson(), 'Does not support native json');

$schema = new SchemaCollection($connection);
$result = $schema->describe('schema_json');
Expand Down

0 comments on commit d3a93bf

Please sign in to comment.