Aacotroneo\Saml2\Saml2AuthTest::testSlsOK PHP 메소드

testSlsOK() 공개 메소드

public testSlsOK ( )
    public function testSlsOK()
    {
        $auth = m::mock('OneLogin_Saml2_Auth');
        $saml2 = new Saml2Auth($auth);
        $auth->shouldReceive('processSLO')->once();
        $auth->shouldReceive('getErrors')->once()->andReturn(null);
        $error = $saml2->sls();
        $this->assertEmpty($error);
    }