Use test config for controller tests

This commit is contained in:
Pierre Rudloff 2017-04-24 17:49:13 +02:00
parent 2051ee410c
commit 2a31951217
2 changed files with 13 additions and 13 deletions

View file

@ -66,9 +66,13 @@ class FrontController
*
* @param Container $container Slim dependency container
*/
public function __construct(ContainerInterface $container)
public function __construct(ContainerInterface $container, Config $config = null)
{
$this->config = Config::getInstance();
if (isset($config)) {
$this->config = $config;
} else {
$this->config = Config::getInstance();
}
$this->download = new VideoDownload();
$this->container = $container;
$this->view = $this->container->get('view');