From 3b684c81856d438e29ba46a7fe6dbcd9fc7bf348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Pustu=C5=82ka?= Date: Thu, 21 Sep 2017 10:40:53 +0200 Subject: [PATCH] Leave a locator "hack" for tests to pass. --- src/Console/Shell.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/Shell.php b/src/Console/Shell.php index 5a2477be2f8..c6085513431 100644 --- a/src/Console/Shell.php +++ b/src/Console/Shell.php @@ -185,7 +185,7 @@ public function __construct(ConsoleIo $io = null) } $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(