Skip to content

Commit

Permalink
Fix a variable that was essentially dead code
Browse files Browse the repository at this point in the history
$initial_routes didn't reallly
do anything before.
  • Loading branch information
kienstra committed Oct 13, 2020
1 parent df7d999 commit b6b9e6a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/php/Unit/Blocks/TestLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -503,12 +503,7 @@ public function test_add_rest_method_with_gcb_block() {
$initial_routes[ $gcb_block_route ]['methods'] = $expected_methods;
}

$actual = $this->instance->add_rest_method(
[
$gcb_block_route => $this->mock_handler,
]
);

$actual = $this->instance->add_rest_method( $initial_routes );
$this->assertEquals(
[
'methods' => $expected_methods,
Expand Down

0 comments on commit b6b9e6a

Please sign in to comment.