From c95b962b774bda75d1b6b1186c05145b639ef582 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 25 Feb 2018 18:46:44 +0000 Subject: [PATCH] Tests: Correct a "false positive" assertion in `test_media_handle_upload_ignores_page_parent_for_directory_date()`. Props birgire. Fixes #42736. git-svn-id: https://develop.svn.wordpress.org/trunk@42743 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/media.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/media.php b/tests/phpunit/tests/media.php index 92728b4a3f..e55a4cea97 100644 --- a/tests/phpunit/tests/media.php +++ b/tests/phpunit/tests/media.php @@ -2437,13 +2437,13 @@ EOF; $uploads_dir = wp_upload_dir( current_time( 'mysql' ) ); - $expected = $uploads_dir['url'] . 'test-image-iptc.jpg'; + $expected = $uploads_dir['url'] . '/test-image-iptc.jpg'; // Clean up. wp_delete_attachment( $post_id ); wp_delete_post( $parent_id ); - $this->assertNotEquals( $expected, $url ); + $this->assertSame( $expected, $url ); } }