CakeDC\Users\Test\TestCase\Controller\Traits\RegisterTraitTest::testRegisterNotEnabled PHP Method

testRegisterNotEnabled() public method

test
public testRegisterNotEnabled ( ) : void
return void
    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);
    }