Updated Test name and exception name to be more accurate
This commit is contained in:
parent
fefc20233b
commit
15fd863112
@ -57,7 +57,7 @@ class GuardListener
|
||||
$token = $this->tokenStorage->getToken();
|
||||
|
||||
if (null === $token) {
|
||||
throw new InvalidTokenConfigurationException(sprintf('There are no token available for workflow %s', $event->getWorkflowName()));
|
||||
throw new InvalidTokenConfigurationException(sprintf('There are no tokens available for workflow %s.', $event->getWorkflowName()));
|
||||
}
|
||||
|
||||
if (null !== $this->roleHierarchy) {
|
||||
|
@ -71,9 +71,9 @@ class GuardListenerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @expectedException \Symfony\Component\Workflow\Exception\InvalidTokenConfigurationException
|
||||
* @expectedExceptionMessage There are no token available for workflow unnamed
|
||||
* @expectedExceptionMessage There are no tokens available for workflow unnamed.
|
||||
*/
|
||||
public function testWithNoTokenStorage()
|
||||
public function testWithNoTokensInTokenStorage()
|
||||
{
|
||||
$event = $this->createEvent();
|
||||
$this->tokenStorage->setToken(null);
|
||||
|
Reference in New Issue
Block a user