Unverified Commit 4d4753ff authored by alexpott's avatar alexpott

Issue #3156040 by Hardik_Patel_12, kiamlaluno, siddhant.bhosale, paulocs:...

Issue #3156040 by Hardik_Patel_12, kiamlaluno, siddhant.bhosale, paulocs: Avoid initializing a local variable to an empty array before adding items to that array

(cherry picked from commit 63c85aca)
parent 4fbe4472
......@@ -374,7 +374,6 @@ public function testCheckNamedRouteWithUpcastedValues() {
->with('test_route_1')
->will($this->returnValue($route));
$map = [];
$map[] = ['test_route_1', ['value' => 'example'], '/test-route-1/example'];
$this->paramConverter = $this->createMock('Drupal\Core\ParamConverter\ParamConverterManagerInterface');
......@@ -423,7 +422,6 @@ public function testCheckNamedRouteWithDefaultValue() {
->with('test_route_1')
->will($this->returnValue($route));
$map = [];
$map[] = ['test_route_1', ['value' => 'example'], '/test-route-1/example'];
$this->paramConverter = $this->createMock('Drupal\Core\ParamConverter\ParamConverterManagerInterface');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment