- Timestamp:
- 09/06/2022 10:03:10 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php
r54055 r54088 5257 5257 public function test_draft_post_does_not_have_the_same_slug_as_existing_post() { 5258 5258 wp_set_current_user( self::$editor_id ); 5259 $this->factory()->post->create( array( 'post_name' => 'sample-slug' ) );5259 self::factory()->post->create( array( 'post_name' => 'sample-slug' ) ); 5260 5260 5261 5261 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/posts/%d', self::$post_id ) );
Note: See TracChangeset
for help on using the changeset viewer.