Skip to content

Commit

Permalink
Updated Test name and exception name to be more accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
GDIBass committed Sep 15, 2017
1 parent fefc202 commit 15fd863
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -57,7 +57,7 @@ private function getVariables(GuardEvent $event)
$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) {
Expand Down
Expand Up @@ -71,9 +71,9 @@ public function testWithSupportedEventAndAccept()

/**
* @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);
Expand Down

0 comments on commit 15fd863

Please sign in to comment.