From 086d0311faef610d5a4abf0bfa58c3dee6516e86 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Sat, 22 Nov 2014 20:41:04 +0000 Subject: [PATCH] Remove failing test related to `wp_unique_post_slug()`. The test has been added as a patch to #18962. See #30284. git-svn-id: https://develop.svn.wordpress.org/trunk@30522 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/post.php | 38 ------------------------------------ 1 file changed, 38 deletions(-) diff --git a/tests/phpunit/tests/post.php b/tests/phpunit/tests/post.php index cab19d86cc..9817bba6ee 100644 --- a/tests/phpunit/tests/post.php +++ b/tests/phpunit/tests/post.php @@ -985,44 +985,6 @@ class Tests_Post extends WP_UnitTestCase { _unregister_post_type( 'post-type-1' ); } - /** - * @ticket 18962 - */ - function test_wp_unique_post_slug_with_hierarchy_and_attachments() { - register_post_type( 'post-type-1', array( 'hierarchical' => true ) ); - - $args = array( - 'post_type' => 'post-type-1', - 'post_name' => 'some-slug', - 'post_status' => 'publish', - ); - $one = $this->factory->post->create( $args ); - - $args = array( - 'post_mime_type' => 'image/jpeg', - 'post_type' => 'attachment', - 'post_name' => 'image' - ); - $attachment = $this->factory->attachment->create_object( 'image.jpg', $one, $args ); - - $args = array( - 'post_type' => 'post-type-1', - 'post_name' => 'image', - 'post_status' => 'publish', - 'post_parent' => $one - ); - $two = $this->factory->post->create( $args ); - - $this->assertEquals( 'some-slug', get_post( $one )->post_name ); - $this->assertEquals( 'image', get_post( $attachment )->post_name ); - $this->assertEquals( 'image-2', get_post( $two )->post_name ); - - // 'image' can be a child of image-2 - $this->assertEquals( 'image', wp_unique_post_slug( 'image', 0, 'publish', 'post-type-1', $two ) ); - - _unregister_post_type( 'post-type-1' ); - } - /** * @ticket 21212 */