/** * Setup application theme. * * @return void */ protected function _setTheme() { $theme = Theme::get($this->request); $this->viewBuilder()->theme($theme); }
/** * Test exist theme plugin. * * @return void */ public function testExistTheme() { $name = Configure::read('Theme.site'); $path = $this->_paths[1] . $name; $this->_folder->create($path); $this->assertSame($path, Theme::exist($name)); $this->_folder->delete($path); }