WordPress.org

Make WordPress Core

Ticket #43663: 43636.3.diff

File 43636.3.diff, 703 bytes (added by birgire, 4 years ago)
  • tests/phpunit/tests/link/themeFile.php

    diff --git tests/phpunit/tests/link/themeFile.php tests/phpunit/tests/link/themeFile.php
    index fe0dbcf..2af10cc 100644
    class Test_Theme_File extends WP_UnitTestCase { 
    102102
    103103        /**
    104104         * @ticket 18302
     105         * @ticket 43663
    105106         *
    106107         * @dataProvider data_theme_files
    107108         */
    108         public function test_theme_file_uri_returns_valid_uri( $file, $expected_theme, $existence ) {
     109        public function test_theme_file_uri_returns_valid_uri( $file, $expected_theme, $existence ) {           
     110                switch_theme( $expected_theme );
     111               
    109112                $uri        = get_theme_file_uri( $file );
    110113                $parent_uri = get_parent_theme_file_uri( $file );
    111114