Browse Source

Fix test on MySQL.

MySQL needs the database key to be set.
Mark Story 9 years ago
parent
commit
9703818a84
1 changed files with 4 additions and 1 deletions
  1. 4 1
      tests/TestCase/TestSuite/FixtureManagerTest.php

+ 4 - 1
tests/TestCase/TestSuite/FixtureManagerTest.php

@@ -282,7 +282,10 @@ class FixtureManagerTest extends TestCase
         // the 'other' connection as the alias should not be ignored.
         $testOther = $this->getMockBuilder('Cake\Database\Connection')
             ->setMethods(['execute'])
-            ->setConstructorArgs([['driver' => $connection->getDriver()]])
+            ->setConstructorArgs([[
+                'database' => $connection->config()['database'],
+                'driver' => $connection->getDriver()
+            ]])
             ->getMock();
         $testOther->expects($this->atLeastOnce())
             ->method('execute')