Changeset 52313
- Timestamp:
- 12/03/2021 03:34:51 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/blocks/editor.php
r52312 r52313 517 517 public function data_block_editor_rest_api_preload_adds_missing_leading_slash() { 518 518 return array( 519 'a string without a slash' => array(519 'a string without a slash' => array( 520 520 'preload_paths' => array( 'wp/v2/blocks' ), 521 521 'expected' => '\/wp\/v2\/blocks', 522 522 ), 523 'a string with a slash' => array(523 'a string with a slash' => array( 524 524 'preload_paths' => array( '/wp/v2/blocks' ), 525 525 'expected' => '\/wp\/v2\/blocks', … … 533 533 'expected' => '\/wp\/v2\/blocks', 534 534 ), 535 'an array with a string with a slash' => array(535 'an array with a string with a slash' => array( 536 536 'preload_paths' => array( array( '/wp/v2/blocks', 'OPTIONS' ) ), 537 537 'expected' => '\/wp\/v2\/blocks',
Note: See TracChangeset
for help on using the changeset viewer.