Exemplo n.º 1
0
 /**
  * setUp
  */
 public function setUp()
 {
     parent::setUp();
     $this->_setupPaths();
     $this->Oven = ClassRegistry::init('Oven.Oven');
     $this->Oven->appPath = App::pluginPath('Oven') . 'Test' . DS . 'test_app' . DS;
 }
Exemplo n.º 2
0
 /**
  * setUp
  */
 public function setUp()
 {
     parent::setUp();
     $this->_setupPaths();
     $this->Init = new Init();
     $this->Init->appPath = App::pluginPath('Oven') . 'Test' . DS . 'test_app' . DS;
 }
Exemplo n.º 3
0
 /**
  * setUp
  */
 public function setUp()
 {
     parent::setUp();
     $this->_setupPaths();
     $appPath = App::pluginPath('Oven') . 'Test' . DS . 'test_app' . DS;
     $config = array('recipe' => array('pages' => array('schema' => array('title' => array(), 'body' => array('type' => 'ckeditor'), 'slug' => array('type' => 'slug'), 'image' => array('type' => 'file')))), 'config' => array('upload_location' => $appPath . 'webroot' . DS . 'files' . DS));
     new OvenConfig($config);
     $this->Oven = ClassRegistry::init('Oven.Oven');
     $this->Oven->appPath = $appPath;
     $this->Oven->bake($config);
     App::uses('Page', 'Model');
     $this->Page = ClassRegistry::init('Page');
     new OvenConfig($config);
 }
Exemplo n.º 4
0
 /**
  * setUp
  */
 public function setUp()
 {
     parent::setUp();
     $this->_setupPaths();
 }
Exemplo n.º 5
0
 /**
  * setUp
  */
 public function setUp()
 {
     parent::setUp();
     $this->path = App::pluginPath('Oven') . 'Test' . DS . 'test_app' . DS . 'Config' . DS;
 }