/**
  * setUp
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     if (!CakePlugin::loaded('DebugKit')) {
         try {
             CakePlugin::load('DebugKit');
         } catch (MissingPluginException $e) {
             $this->markTestSkipped('DebugKit plugin not available');
         }
     }
     $this->Controller = new Controller();
     $this->Panel = new CrudPanel();
     $this->setReflectionClassInstance($this->Panel);
 }
 public function tearDown()
 {
     parent::tearDown();
     Configure::write($this->_config);
     CakePlugin::unload('TestPlugin');
 }
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Crud, $this->Request, $this->Collection, $this->Controller, $this->action, $this->Subject, $this->ActionClass);
 }