[Security] Added a test to the BasicAuthenticationListener.
This commit is contained in:
parent
314f29a718
commit
307bc91e02
@ -195,4 +195,18 @@ class BasicAuthenticationListenerTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
$listener->handle($event);
|
$listener->handle($event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @expectedException \InvalidArgumentException
|
||||||
|
* @expectedExceptionMessage $providerKey must not be empty
|
||||||
|
*/
|
||||||
|
public function testItRequiresProviderKey()
|
||||||
|
{
|
||||||
|
new BasicAuthenticationListener(
|
||||||
|
$this->getMock('Symfony\Component\Security\Core\SecurityContextInterface'),
|
||||||
|
$this->getMock('Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface'),
|
||||||
|
'',
|
||||||
|
$this->getMock('Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface')
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user