Dispatcher =& new MockShellDispatcher(); $this->Shell =& new TestShell($this->Dispatcher); } /** * undocumented function * * @return void * @access public */ function testInitialize() { $_back = array( 'modelPaths' => Configure::read('modelPaths'), 'pluginPaths' => Configure::read('pluginPaths'), 'viewPaths' => Configure::read('viewPaths'), ); Configure::write('pluginPaths', array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'plugins' . DS)); Configure::write('modelPaths', array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'models' . DS)); $this->Shell->uses = array('TestPlugin.TestPluginPost'); $this->Shell->initialize(); $this->assertTrue(isset($this->Shell->TestPluginPost)); $this->assertTrue(is_a($this->Shell->TestPluginPost, 'TestPluginPost')); $this->assertEqual($this->Shell->modelClass, 'TestPluginPost'); $this->Shell->uses = array('Comment'); $this->Shell->initialize(); $this->assertTrue(isset($this->Shell->Comment)); $this->assertTrue(is_a($this->Shell->Comment, 'Comment')); $this->assertEqual($this->Shell->modelClass, 'Comment'); Configure::write('pluginPaths', $_back['pluginPaths']); Configure::write('modelPaths', $_back['modelPaths']); } /** * Test Loading of Tasks * * @return void **/ function testLoadTasks() { } /** * test ShortPath * * @return void **/ function testShortPath() { } /** * test File creation * * @return void **/ function createFile() { } } ?>