示例#1
0
 /**
  * setUp method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     //$this->BlogAppModel = ClassRegistry::init('Blogs.BlogAppModel');
     $this->BlogEntry = ClassRegistry::init('Blogs.BlogEntry');
     $this->_unloadTrackable($this->BlogEntry);
     $this->BlogEntry->Behaviors->unload('Tag');
     $this->BlogEntry->Behaviors->unload('Like');
     $this->BlogEntry->Behaviors->unload('Category');
 }
示例#2
0
 /**
  * setUp method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->Blog = ClassRegistry::init('Blogs.Blog');
     $this->_unloadTrackable($this->Blog);
 }