Unverified Commit 103a1dc5 authored by Alex Pott's avatar Alex Pott
Browse files

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 ae8496be
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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');