Skip to content

Commit

Permalink
Coding standards: Address a few coding standards issues after [52312].
Browse files Browse the repository at this point in the history
Follow-up to [52312].

See #54558.


git-svn-id: https://develop.svn.wordpress.org/trunk@52313 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
audrasjb committed Dec 3, 2021
1 parent 108e658 commit 281142b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/phpunit/tests/blocks/editor.php
Expand Up @@ -516,11 +516,11 @@ public function test_block_editor_rest_api_preload_adds_missing_leading_slash( a
*/
public function data_block_editor_rest_api_preload_adds_missing_leading_slash() {
return array(
'a string without a slash' => array(
'a string without a slash' => array(
'preload_paths' => array( 'wp/v2/blocks' ),
'expected' => '\/wp\/v2\/blocks',
),
'a string with a slash' => array(
'a string with a slash' => array(
'preload_paths' => array( '/wp/v2/blocks' ),
'expected' => '\/wp\/v2\/blocks',
),
Expand All @@ -532,7 +532,7 @@ public function data_block_editor_rest_api_preload_adds_missing_leading_slash()
'preload_paths' => array( array( 'wp/v2/blocks', 'OPTIONS' ) ),
'expected' => '\/wp\/v2\/blocks',
),
'an array with a string with a slash' => array(
'an array with a string with a slash' => array(
'preload_paths' => array( array( '/wp/v2/blocks', 'OPTIONS' ) ),
'expected' => '\/wp\/v2\/blocks',
),
Expand Down

0 comments on commit 281142b

Please sign in to comment.