Updated Test name and exception name to be more accurate

This commit is contained in:
GDIBass 2017-09-15 09:32:24 -07:00
parent fefc20233b
commit 15fd863112
2 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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);