mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Use configuration property accessor
This commit is contained in:
@@ -16,10 +16,7 @@ class API_V1_resultTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
||||
parent::setUp();
|
||||
|
||||
self::$DI['app']->register(new \API_V1_Timer());
|
||||
|
||||
$conf = self::$DI['app']['configuration']->getConfig();
|
||||
$conf['main']['api-timers'] = true;
|
||||
self::$DI['app']['configuration']->setConfig($conf);
|
||||
self::$DI['app']['conf']->set(['main', 'api-timers'], true);
|
||||
|
||||
$this->api = $this->getMock("API_V1_adapter", ["get_version"], [], "", false);
|
||||
$this->api->expects($this->any())->method("get_version")->will($this->returnValue("my_super_version1.0"));
|
||||
|
Reference in New Issue
Block a user