Beispiel #1
0
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->Task);
     TableRegistry::clear();
     parent::tearDown();
     Plugin::unload('ControllerTest');
 }
Beispiel #2
0
 /**
  * setup method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->_compareBasePath = Plugin::path('Bake') . 'tests' . DS . 'comparisons' . DS . 'Mailer' . DS;
     $io = $this->getMock('Cake\\Console\\ConsoleIo', [], [], '', false);
     $this->Task = $this->getMock('Bake\\Shell\\Task\\MailerTask', ['in', 'err', 'createFile', '_stop'], [$io]);
     $this->Task->Test = $this->getMock('Bake\\Shell\\Task\\TestTask', [], [$io]);
     $this->Task->BakeTemplate = new BakeTemplateTask($io);
     $this->Task->BakeTemplate->initialize();
     $this->Task->BakeTemplate->interactive = false;
 }
Beispiel #3
0
 /**
  * setup method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->_compareBasePath = Plugin::path('Bake') . 'tests' . DS . 'comparisons' . DS . 'Simple' . DS;
     $io = $this->getMock('Cake\\Console\\ConsoleIo', [], [], '', false);
     $this->Task = $this->getMock('Bake\\Shell\\Task\\SimpleBakeTask', ['in', 'err', 'createFile', '_stop', 'name', 'template', 'fileName'], [$io]);
     $this->Task->Test = $this->getMock('Bake\\Shell\\Task\\TestTask', [], [$io]);
     $this->Task->BakeTemplate = new BakeTemplateTask($io);
     $this->Task->BakeTemplate->initialize();
     $this->Task->BakeTemplate->interactive = false;
     $this->Task->pathFragment = 'Model/Behavior/';
     $this->Task->expects($this->any())->method('name')->will($this->returnValue('behavior'));
     $this->Task->expects($this->any())->method('template')->will($this->returnValue('Model/behavior'));
     $this->Task->expects($this->any())->method('fileName')->will($this->returnValue('ExampleBehavior.php'));
 }
Beispiel #4
0
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Task);
     $this->fixtureManager->shutDown();
 }
Beispiel #5
0
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Shell);
 }
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     TableRegistry::clear();
     unset($this->Task);
 }
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Task);
     Plugin::unload('TestBakeTheme');
 }
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Task);
 }