/** * startTest * * @return void **/ function setup() { parent::setup(); $this->_path = APP . 'plugins' . DS . 'api_generator'; $this->_testAppPath = dirname(dirname(dirname(__FILE__))) . DS . 'test_app' . DS; Configure::write('ApiGenerator.filePath', $this->_path); $this->ApiPackage = ClassRegistry::init('ApiPackage'); }
/** * setup * * @return void **/ function setup() { parent::setup(); $this->_pluginPath = dirname(dirname(dirname(dirname(dirname(__FILE__))))); $controller = new Controller(); $view = new View($controller); $view->set('basePath', $this->_pluginPath); $this->ApiDoc = new ApiDocHelper($view); Router::reload(); Router::parse('/'); }
public function setup() { parent::setup(); if (!CakePlugin::loaded('Search')) { try { CakePlugin::load('Search'); } catch (MissingPluginException $e) { $this->markTestSkipped('Search plugin not available'); } } }
/** * setup method * * @return void */ public function setup() { parent::setup(); $out = $this->getMock('ConsoleOutput', array(), array(), '', false); $in = $this->getMock('ConsoleInput', array(), array(), '', false); $this->Task = $this->getMock('TestTask', array('in', 'err', 'createFile', '_stop', 'isLoadableClass'), array($out, $out, $in)); $this->Task->name = 'Test'; $this->Task->Template = new TemplateTask($out, $out, $in); }
/** * setUp method * * @return void */ public function setup() { parent::setup(); Configure::write('Session', array('defaults' => 'php', 'cookie' => 'cakephp', 'timeout' => 120, 'cookieTimeout' => 120, 'ini' => array())); TestCakeSession::init(); }
public function setup() { parent::setup(); $this->Subject = new CrudSubject(array('action' => 'index')); }
/** * setup method * * @return void */ public function setUp() { parent::setup(); $this->_appEncoding = Configure::read('App.encoding'); }
/** * setup method * * @access public * @return void */ function setUp() { parent::setup(); $this->_appEncoding = Configure::read('App.encoding'); Configure::write('App.encoding', 'UTF-8'); }
/** * setup * * @return void */ function setup() { parent::setup(); $this->path = TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'config' . DS; }
/** * setup * * @return void */ public function setup() { parent::setup(); $this->path = CAKE . 'Test' . DS . 'test_app' . DS . 'Config' . DS; }
/** * setUp method * * @return void */ public function setUp() { parent::setup(); Configure::write('debug', 2); Configure::write('log', false); }
/** * setup * * @return void **/ function setup() { parent::setup(); $this->Model = ClassRegistry::init('ApiGeneratorAppTestModel'); }
public function setup() { parent::setup(); include __DIR__ . '/../../../Config/bootstrap.php'; }