public function testRegisterNotEnabled()
{
$active = Configure::read('Users.Registration.active');
Configure::write('Users.Registration.active', false);
$this->_mockRequestPost();
$this->_mockAuth();
$this->_mockFlash();
$this->_mockDispatchEvent();
$this->Trait->register();
Configure::write('Users.Registration.active', $active);
}