Aacotroneo\Saml2\Saml2AuthTest::testAcsNotAutenticated PHP Method

testAcsNotAutenticated() public method

    public function testAcsNotAutenticated()
    {
        $auth = m::mock('OneLogin_Saml2_Auth');
        $saml2 = new Saml2Auth($auth);
        $auth->shouldReceive('processResponse')->once();
        $auth->shouldReceive('getErrors')->once()->andReturn(null);
        $auth->shouldReceive('isAuthenticated')->once()->andReturn(false);
        $error = $saml2->acs();
        $this->assertNotEmpty($error);
    }