Skip to content

Commit d5c6864

Browse files
committed
Issue #3020538 by catch: Route::__construct() no longer accepts NULL as first parameter [Symfony 4]
1 parent 69b99ec commit d5c6864

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/modules/workflows/tests/src/Unit/WorkflowStateTransitionOperationsAccessCheckTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function testAccess($route_requirement, $resulting_entity_access_check, $
3131
->shouldBeCalled()
3232
->willReturn($workflow_entity_access_result);
3333

34-
$route = new Route(NULL, [
34+
$route = new Route('', [
3535
'workflow' => NULL,
3636
'workflow_transition' => NULL,
3737
'workflow_state' => NULL,
@@ -97,7 +97,7 @@ public function testMissingRouteParams() {
9797
$workflow = $this->prophesize(WorkflowInterface::class);
9898
$workflow->access()->shouldNotBeCalled();
9999

100-
$route = new Route(NULL, [
100+
$route = new Route('', [
101101
'workflow' => NULL,
102102
'workflow_state' => NULL,
103103
], [
@@ -127,7 +127,7 @@ public function testMissingRouteParams() {
127127
*/
128128
public function testInvalidOperationName($operation_name) {
129129
$this->setExpectedException(\Exception::class, "Invalid _workflow_access operation '$operation_name' specified for route 'Foo Route'.");
130-
$route = new Route(NULL, [], [
130+
$route = new Route('', [], [
131131
'_workflow_access' => $operation_name,
132132
]);
133133
$access_check = new WorkflowStateTransitionOperationsAccessCheck();
@@ -162,7 +162,7 @@ public function testLegacyWorkflowStateDeleteAccessCheck() {
162162
->shouldBeCalled()
163163
->willReturn($workflow_entity_access_result);
164164

165-
$route = new Route(NULL, [
165+
$route = new Route('', [
166166
'workflow' => NULL,
167167
'workflow_state' => NULL,
168168
], ['_workflow_state_delete_access' => 'true']);

0 commit comments

Comments
 (0)