Permalink
Browse files

Fix incorrect aliasing.

The old code resulted in test_default => default, not test => default as
intended.
  • Loading branch information...
1 parent c67eee9 commit 48f5812bf87c0d78b2dde5d2bf860d1c60975786 @markstory markstory committed Feb 27, 2014
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/TestSuite/Fixture/FixtureManager.php
@@ -83,10 +83,11 @@ public function fixturize($test) {
protected function _aliasConnections() {
$connections = ConnectionManager::configured();
ConnectionManager::alias('test', 'default');
- $map = [
- 'test' => 'default',
- ];
+ $map = [];
foreach ($connections as $connection) {
+ if ($connection === 'test' || $connection === 'default') {
+ continue;
+ }
if (isset($map[$connection])) {
continue;
}

0 comments on commit 48f5812

Please sign in to comment.