Make WordPress Core


Ignore:
Timestamp:
02/17/2023 06:37:24 PM (22 months ago)
Author:
danielbachhuber
Message:

REST API: Only use Latin characters in test filenames.

Non-Latin characters can break SVN checkout in some environments.

Follow up from [55294].

See #57329, #57761.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/wpRestTemplatesController.php

    r55294 r55362  
    301301                    'post_name'    => 'small-header-τεστ',
    302302                    'post_title'   => 'Small Header τεστ Template',
    303                     'post_content' => file_get_contents( $theme_root_dir . '/block-theme-non-latin/parts/small-header-τεστ.html' ),
     303                    'post_content' => file_get_contents( $theme_root_dir . '/block-theme-non-latin/parts/small-header-test.html' ),
    304304                    'post_excerpt' => 'Description of small header τεστ template.',
    305305                ),
     
    311311                    'post_name'    => 'page-τεστ',
    312312                    'post_title'   => 'τεστ Page Template',
    313                     'post_content' => file_get_contents( $theme_root_dir . 'block-theme-non-latin/templates/page-τεστ.html' ),
     313                    'post_content' => file_get_contents( $theme_root_dir . 'block-theme-non-latin/templates/page-test.html' ),
    314314                    'post_excerpt' => 'Description of page τεστ template.',
    315315                ),
     
    321321                    'post_name'    => 'small-header-测试',
    322322                    'post_title'   => 'Small Header 测试 Template',
    323                     'post_content' => file_get_contents( $theme_root_dir . '/block-theme-non-latin/parts/small-header-测试.html' ),
     323                    'post_content' => file_get_contents( $theme_root_dir . '/block-theme-non-latin/parts/small-header-test.html' ),
    324324                    'post_excerpt' => 'Description of small header 测试 template.',
    325325                ),
     
    331331                    'post_name'    => 'page-测试',
    332332                    'post_title'   => '测试 Page Template',
    333                     'post_content' => file_get_contents( $theme_root_dir . 'block-theme-non-latin/templates/page-测试.html' ),
     333                    'post_content' => file_get_contents( $theme_root_dir . 'block-theme-non-latin/templates/page-test.html' ),
    334334                    'post_excerpt' => 'Description of page 测试 template.',
    335335                ),
Note: See TracChangeset for help on using the changeset viewer.