public function removeBehavior($name) { $this->_behaviors->unload($name); }
/** * tear down * @return void */ public function tearDown() { parent::tearDown(); $this->Noticias->removeBehavior("CakePtbr.AjusteData"); unset($this->Noticias, $this->Noticias); TableRegistry::clear(); }