8000 [FrameworkBundle][Workflow] fix guard expressions by destillat · Pull Request #28018 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[FrameworkBundle][Workflow] fix guard expressions #28018

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Prev Previous commit
[CS] apply cs recommendations
  • Loading branch information
destillat committed Jul 26, 2018
commit ac835a83eac0d5534eefdbd5aea2e8c88e6d8be0
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ public function testGuardExpressions()
),
), $guardDefinition->getTag('kernel.event_listener'));
$guardsConfiguration = $guardDefinition->getArgument(0);
$this->assertTrue(1 === count($guardsConfiguration), 'Workflow guard configuration contains one element per transition name');
$this->assertTrue(1 === \count($guardsConfiguration), 'Workflow guard configuration contains one element per transition name');
$transitionGuardExpressions = $guardsConfiguration['workflow.article.guard.publish'];
$this->assertSame('workflow.article.transition.3', (string) $transitionGuardExpressions[0]->getArgument(0));
$this->assertSame('!!true', $transitionGuardExpressions[0]->getArgument(1));
Expand Down
0