Make WordPress Core

Changeset 37443


Ignore:
Timestamp:
05/17/2016 01:48:58 AM (10 years ago)
Author:
boonebgorges
Message:

Tests: Use factory method to generate fixtures for wp_unique_post_slug() tests.

Props mintindeed.
See #20419.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/wpUniquePostSlug.php

    r36307 r37443  
    3232                                );
    3333
    34                                 $id = $this->post_ids[] = wp_insert_post( $post );
     34                                $id = $this->post_ids[] = self::factory()->post->create( $post );
    3535                        }
    3636
Note: See TracChangeset for help on using the changeset viewer.