WordPress.org

Make WordPress Core

Ticket #43663: 43663.2.diff

File 43663.2.diff, 795 bytes (added by mattkeys, 4 years ago)
  • tests/phpunit/tests/link/themeFile.php

    diff --git a/tests/phpunit/tests/link/themeFile.php b/tests/phpunit/tests/link/themeFile.php
    index fe0dbcfe42..9b0a895d86 100644
    a b class Test_Theme_File extends WP_UnitTestCase { 
    106106         * @dataProvider data_theme_files
    107107         */
    108108        public function test_theme_file_uri_returns_valid_uri( $file, $expected_theme, $existence ) {
    109                 $uri        = get_theme_file_uri( $file );
    110                 $parent_uri = get_parent_theme_file_uri( $file );
     109                $uri        = str_replace( ' ', '%20', get_theme_file_uri( $file ) );
     110                $parent_uri = str_replace( ' ', '%20', get_parent_theme_file_uri( $file ) );
    111111
    112112                $this->assertSame( esc_url_raw( $uri ), $uri );
    113113                $this->assertSame( esc_url_raw( $parent_uri ), $parent_uri );