/** * @return void */ public function testCheckReloadAjaxView() { Plugin::load('DebugKit'); $file = Plugin::path('DebugKit') . 'src/View/AjaxView.php'; $content = file_get_contents($file); $this->assertRegExp('/Union/', $content); Plugin::unload('DebugKit'); }
/** * On setup admin application. * * @return void */ protected function _onSetupAdmin() { $plugins = (array) Plugin::loaded(); foreach ($plugins as $plugin) { $path = Plugin::path($plugin); $navConf = $path . 'config' . DS . self::ADMIN_MENU_FILE_NAME . '.php'; if (file_exists($navConf)) { /** @noinspection PhpIncludeInspection */ require_once $navConf; } } }