Use configuration property accessor

This commit is contained in:
Romain Neutron
2013-11-18 18:45:25 +01:00
parent 94be7c5498
commit 7e0a3c7338
87 changed files with 209 additions and 265 deletions

View File

@@ -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"));