Skip to content
Permalink
Browse files

Add @ticket annotations for [45812].

Props birgire.
See #43709.



git-svn-id: https://develop.svn.wordpress.org/trunk@45820 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
kadamwhite committed Aug 16, 2019
1 parent a100d0c commit 4bb45c674ad1ebf62a804076f9a5265f83689d98
Showing with 10 additions and 0 deletions.
  1. +10 −0 tests/phpunit/tests/rest-api/rest-revisions-controller.php
@@ -241,6 +241,9 @@ public function test_delete_item() {
$this->assertNotNull( get_post( $this->revision_id1 ) );
}
/**
* @ticket 43709
*/
public function test_delete_item_remove_do_not_allow() {
wp_set_current_user( self::$editor_id );
add_filter( 'map_meta_cap', array( $this, '_filter_map_meta_cap_remove_no_allow_revisions' ), 10, 4 );
@@ -251,6 +254,9 @@ public function test_delete_item_remove_do_not_allow() {
$this->assertNull( get_post( $this->revision_id1 ) );
}
/**
* @ticket 43709
*/
public function test_delete_item_cannot_delete_parent() {
wp_set_current_user( self::$editor_id );
$request = new WP_REST_Request( 'DELETE', '/wp/v2/posts/' . self::$post_id . '/revisions/' . $this->revision_id1 );
@@ -260,6 +266,10 @@ public function test_delete_item_cannot_delete_parent() {
$this->assertNotNull( get_post( $this->revision_id1 ) );
}
/**
* @ticket 38494
* @ticket 43709
*/
public function test_delete_item_no_trash() {
wp_set_current_user( self::$editor_id );
add_filter( 'map_meta_cap', array( $this, '_filter_map_meta_cap_remove_no_allow_revisions' ), 10, 4 );

0 comments on commit 4bb45c6

Please sign in to comment.
You can’t perform that action at this time.