changed exception message
This commit is contained in:
parent
49839e3c28
commit
8f2fa6b047
@ -57,7 +57,7 @@ class GuardListener
|
||||
$token = $this->tokenStorage->getToken();
|
||||
|
||||
if (null === $token) {
|
||||
throw new InvalidTokenConfigurationException('No token is set');
|
||||
throw new InvalidTokenConfigurationException(sprintf('There are no token available for workflow %s', $event->getWorkflowName()));
|
||||
}
|
||||
|
||||
if (null !== $this->roleHierarchy) {
|
||||
|
@ -18,4 +18,4 @@ namespace Symfony\Component\Workflow\Exception;
|
||||
*/
|
||||
class InvalidTokenConfigurationException extends LogicException implements ExceptionInterface
|
||||
{
|
||||
}
|
||||
}
|
@ -71,7 +71,7 @@ class GuardListenerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @expectedException \Symfony\Component\Workflow\Exception\InvalidTokenConfigurationException
|
||||
* @expectedExceptionMessage No token is set
|
||||
* @expectedExceptionMessage There are no token available for workflow unnamed
|
||||
*/
|
||||
public function testWithNoTokenStorage()
|
||||
{
|
||||
|
Reference in New Issue
Block a user