Skip to content

Commit

Permalink
Fixed assertion with controller name
Browse files Browse the repository at this point in the history
  • Loading branch information
yann-eugone committed Sep 26, 2019
1 parent 233c431 commit 371e860
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/Admin/Extension/WorkflowExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use Symfony\Component\Routing\Route;
use Symfony\Component\Workflow\Registry;
use Symfony\Component\Workflow\StateMachine;
use Symfony\Component\Workflow\SupportStrategy\InstanceOfSupportStrategy;
use Yokai\SonataWorkflow\Admin\Extension\WorkflowExtension;
use Yokai\SonataWorkflow\Controller\WorkflowController;
use Yokai\SonataWorkflow\Tests\PullRequest;
Expand All @@ -36,7 +35,7 @@ public function testConfigureRoutes()
self::assertSame('/pull-request/{id}/workflow/transition/{transition}/apply', $route->getPath());
self::assertNotEmpty($defaults = $route->getDefaults());
self::assertArrayHasKey('_controller', $defaults);
self::assertSame(WorkflowController::class.':workflowApplyTransitionAction', $defaults['_controller']);
self::assertSame(WorkflowController::class.'::workflowApplyTransitionAction', $defaults['_controller']);
self::assertArrayHasKey('_sonata_admin', $defaults);
self::assertSame('pull_request', $defaults['_sonata_admin']);
}
Expand Down

0 comments on commit 371e860

Please sign in to comment.