Browse Source

Merge pull request #17691 from cakephp/skip-mysql-tests

Skip mysql schema test when mysql not configured
othercorey 1 year ago
parent
commit
9d377a9945
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/TestCase/Database/Schema/MysqlSchemaTest.php

+ 2 - 0
tests/TestCase/Database/Schema/MysqlSchemaTest.php

@@ -504,6 +504,7 @@ SQL;
      */
     public function testDescribeTableConditionalConstraint(): void
     {
+        $this->_needsConnection();
         $connection = ConnectionManager::get('test');
         $connection->execute('DROP TABLE IF EXISTS conditional_constraint');
         $table = <<<SQL
@@ -533,6 +534,7 @@ SQL;
 
     public function testDescribeTableFunctionalIndex(): void
     {
+        $this->_needsConnection();
         $connection = ConnectionManager::get('test');
         $connection->execute('DROP TABLE IF EXISTS functional_index');
         $table = <<<SQL