예제 #1
0
 /**
  * @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');
 }
예제 #2
0
 /**
  * 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;
         }
     }
 }