mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Coding standards: Address a few coding standards issues after [52312].
Follow-up to [52312]. See #54558. git-svn-id: https://develop.svn.wordpress.org/trunk@52313 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
108e65819a
commit
281142bfb4
@ -516,11 +516,11 @@ class Tests_Blocks_Editor extends WP_UnitTestCase {
|
||||
*/
|
||||
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',
|
||||
),
|
||||
@ -532,7 +532,7 @@ class Tests_Blocks_Editor extends WP_UnitTestCase {
|
||||
'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',
|
||||
),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user