Make WordPress Core


Ignore:
Timestamp:
09/18/2024 09:04:48 PM (8 months ago)
Author:
hellofromTonya
Message:

Tests: Use file paths independent of OS-specifics assertion or helper.

Use WP_UnitTestCase_Base::assertSamePathIgnoringDirectorySeparators() and WP_UnitTestCase_Base::normalizeDirectorySeparatorsInPath() in existing tests.

Follow-up to [59057], [57753], [57215], [56635], [48937], [25002].

Props jrf.
See #61530.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/admin/includesFile.php

    r58208 r59061  
    1616        $siteurl = get_option( 'siteurl' );
    1717        $sfn     = $_SERVER['SCRIPT_FILENAME'];
    18         $this->assertSame( str_replace( '\\', '/', ABSPATH ), get_home_path() );
     18        $this->assertSamePathIgnoringDirectorySeparators( ABSPATH, get_home_path() );
    1919
    2020        update_option( 'home', 'http://localhost' );
Note: See TracChangeset for help on using the changeset viewer.