Aacotroneo\Saml2\Saml2AuthTest::testLogout PHP Method

testLogout() public method

public testLogout ( )
    public function testLogout()
    {
        $expectedReturnTo = 'http://localhost';
        $expectedSessionIndex = 'session_index_value';
        $expectedNameId = 'name_id_value';
        $auth = m::mock('OneLogin_Saml2_Auth');
        $saml2 = new Saml2Auth($auth);
        $auth->shouldReceive('logout')->with($expectedReturnTo, [], $expectedNameId, $expectedSessionIndex)->once();
        $saml2->logout($expectedReturnTo, $expectedNameId, $expectedSessionIndex);
    }