Add cli to base test class
This commit is contained in:
@@ -61,6 +61,7 @@ abstract class Base extends PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
$this->container['db']->getStatementHandler()->withLogging();
|
$this->container['db']->getStatementHandler()->withLogging();
|
||||||
$this->container['logger'] = new Logger();
|
$this->container['logger'] = new Logger();
|
||||||
|
$this->container['cli'] = new \Symfony\Component\Console\Application('Kanboard', 'test');
|
||||||
|
|
||||||
$this->container['httpClient'] = $this
|
$this->container['httpClient'] = $this
|
||||||
->getMockBuilder('\Kanboard\Core\Http\Client')
|
->getMockBuilder('\Kanboard\Core\Http\Client')
|
||||||
|
|||||||
Reference in New Issue
Block a user