Skip to content

Commit

Permalink
Issue #3156040 by Hardik_Patel_12, kiamlaluno, siddhant.bhosale, paul…
Browse files Browse the repository at this point in the history
…ocs: Avoid initializing a local variable to an empty array before adding items to that array

(cherry picked from commit 63c85acafa17de88e58f39c1a6222d3f755c1495)
  • Loading branch information
alexpott committed Jul 31, 2020
1 parent cec0ef9 commit 7e94f4b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/Drupal/Tests/Core/Access/AccessManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 7e94f4b

Please sign in to comment.