From 55961a561380c54b4b562fbf86682c3ff8c1a894 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Tue, 17 May 2016 01:48:58 +0000 Subject: [PATCH] Tests: Use factory method to generate fixtures for `wp_unique_post_slug()` tests. Props mintindeed. See #20419. git-svn-id: https://develop.svn.wordpress.org/trunk@37443 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/post/wpUniquePostSlug.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/post/wpUniquePostSlug.php b/tests/phpunit/tests/post/wpUniquePostSlug.php index 8e5537ca72..62f1ad6397 100644 --- a/tests/phpunit/tests/post/wpUniquePostSlug.php +++ b/tests/phpunit/tests/post/wpUniquePostSlug.php @@ -31,7 +31,7 @@ class Tests_Post_WpUniquePostSlug extends WP_UnitTestCase { 'post_title' => $post_title, ); - $id = $this->post_ids[] = wp_insert_post( $post ); + $id = $this->post_ids[] = self::factory()->post->create( $post ); } $post = get_post( $id );