Make WordPress Core


Ignore:
Timestamp:
02/25/2018 06:46:44 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Tests: Correct a "false positive" assertion in test_media_handle_upload_ignores_page_parent_for_directory_date().

Props birgire.
Fixes #42736.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/media.php

    r42742 r42743  
    24382438        $uploads_dir = wp_upload_dir( current_time( 'mysql' ) );
    24392439
    2440         $expected = $uploads_dir['url'] . 'test-image-iptc.jpg';
     2440        $expected = $uploads_dir['url'] . '/test-image-iptc.jpg';
    24412441
    24422442        // Clean up.
     
    24442444        wp_delete_post( $parent_id );
    24452445
    2446         $this->assertNotEquals( $expected, $url );
     2446        $this->assertSame( $expected, $url );
    24472447    }
    24482448}
Note: See TracChangeset for help on using the changeset viewer.