Redaxscript\Tests\AuthTest::testLoginAndLogout PHP Method

testLoginAndLogout() public method

testLogin
Since: 3.0.0
public testLoginAndLogout ( )
    public function testLoginAndLogout()
    {
        /* setup */
        $auth = new Auth($this->_request);
        $auth->logout();
        /* compare */
        $this->assertFalse($auth->login());
        $this->assertTrue($auth->login(1));
        $this->assertTrue($auth->logout());
        $this->assertFalse($auth->logout());
    }