/** * @test */ public function checkGetParam() { Config::getInstance(['type' => 'File', File::CONFIG_PATH_INDEX => self::$testDataDir]); self::assertEquals('memcached', Config::get('cache_type')); }
/** * @throws \ErrorException */ public function indexAction() { $em = \chilimatic\lib\di\ClosureFactory::getInstance()->get('entity-manager'); $phtml = new \chilimatic\lib\view\PHtml(); $this->getView()->response = ['data' => ['title' => 'Settings', 'jsController' => 'SettingManager', 'content' => $phtml->render(\chilimatic\lib\config\Config::get('document_root') . '/app/view/admin/user/settings.phtml')], 'call' => 'initWindow']; }