Make WordPress Core


Ignore:
Timestamp:
12/03/2021 03:34:51 PM (3 years ago)
Author:
audrasjb
Message:

Coding standards: Address a few coding standards issues after [52312].

Follow-up to [52312].

See #54558.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/blocks/editor.php

    r52312 r52313  
    517517    public function data_block_editor_rest_api_preload_adds_missing_leading_slash() {
    518518        return array(
    519             'a string without a slash' => array(
     519            'a string without a slash'               => array(
    520520                'preload_paths' => array( 'wp/v2/blocks' ),
    521521                'expected'      => '\/wp\/v2\/blocks',
    522522            ),
    523             'a string with a slash' => array(
     523            'a string with a slash'                  => array(
    524524                'preload_paths' => array( '/wp/v2/blocks' ),
    525525                'expected'      => '\/wp\/v2\/blocks',
     
    533533                'expected'      => '\/wp\/v2\/blocks',
    534534            ),
    535             'an array with a string with a slash' => array(
     535            'an array with a string with a slash'    => array(
    536536                'preload_paths' => array( array( '/wp/v2/blocks', 'OPTIONS' ) ),
    537537                'expected'      => '\/wp\/v2\/blocks',
Note: See TracChangeset for help on using the changeset viewer.