8000 Updated Test name and exception name to be more accurate · symfony/symfony@15fd863 · GitHub
[go: up one dir, main page]

Skip to content

Commit 15fd863

Browse files
author
GDIBass
committed
Updated Test name and exception name to be more accurate
1 parent fefc202 commit 15fd863

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Symfony/Component/Workflow/EventListener/GuardListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private function getVariables(GuardEvent $event)
5757
$token = $this->tokenStorage->getToken();
5858

5959
if (null === $token) {
60-
throw new InvalidTokenConfigurationException(sprintf('There are no token available for workflow %s', $event->getWorkflowName()));
60+
throw new InvalidTokenConfigurationException(sprintf('There are no tokens available for workflow %s.', $event->getWorkflowName()));
6161
}
6262

6363
if (null !== $this->roleHierarchy) {

src/Symfony/Component/Workflow/Tests/EventListener/GuardListenerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ public function testWithSupportedEventAndAccept()
7171

7272
/**
7373
* @expectedException \Symfony\Component\Workflow\Exception\InvalidTokenConfigurationException
74-
* @expectedExceptionMessage There are no token available for workflow unnamed
74+
* @expectedExceptionMessage There are no tokens available for workflow unnamed.
7575
*/
76-
public function testWithNoTokenStorage()
76+
public function testWithNoTokensInTokenStorage()
7777
{
7878
$event = $this->createEvent();
7979
$this->tokenStorage->setToken(null);

0 commit comments

Comments
 (0)
0