Browse Source

Leave a locator "hack" for tests to pass.

Robert Pustułka 8 years ago
parent
commit
3b684c8185
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Console/Shell.php

+ 1 - 1
src/Console/Shell.php

@@ -185,7 +185,7 @@ class Shell
         }
         $this->_io = $io ?: new ConsoleIo();
 
-        $this->modelFactory('Table', [$this->getTableLocator(), 'get']);
+        $this->modelFactory('Table', [$this->getTableLocator() ?: new TableLocator(), 'get']);
         $this->Tasks = new TaskRegistry($this);
 
         $this->_mergeVars(