Changeset 52010 for trunk/tests/phpunit/tests/post/revisions.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/revisions.php
r51657 r52010 16 16 } 17 17 18 function set_up() {18 public function set_up() { 19 19 parent::set_up(); 20 20 $this->post_type = rand_str( 20 ); … … 27 27 * @ticket 16215 28 28 */ 29 function test_revision_restore_updates_edit_last_post_meta() {29 public function test_revision_restore_updates_edit_last_post_meta() { 30 30 // Create a post as Author. 31 31 wp_set_current_user( self::$author_user_id ); … … 70 70 * @ticket 9843 71 71 */ 72 function test_revision_dont_save_revision_if_unchanged() {72 public function test_revision_dont_save_revision_if_unchanged() { 73 73 $post = get_default_post_to_edit( 'post', true ); 74 74 $post_id = $post->ID; … … 140 140 * @ticket 9843 141 141 */ 142 function test_revision_force_save_revision_even_if_unchanged() {142 public function test_revision_force_save_revision_even_if_unchanged() { 143 143 add_filter( 'wp_save_post_revision_check_for_changes', '__return_false' ); 144 144 … … 215 215 * @ticket 16847 216 216 */ 217 function test_revision_view_caps_post() {217 public function test_revision_view_caps_post() { 218 218 $post_id = self::factory()->post->create( 219 219 array( … … 248 248 * @ticket 16847 249 249 */ 250 function test_revision_restore_caps_post() {250 public function test_revision_restore_caps_post() { 251 251 $post_id = self::factory()->post->create( 252 252 array( … … 279 279 * @ticket 16847 280 280 */ 281 function test_revision_diff_caps_post() {281 public function test_revision_diff_caps_post() { 282 282 $post_id = self::factory()->post->create( 283 283 array( … … 317 317 * @ticket 16847 318 318 */ 319 function test_revision_view_caps_cpt() {319 public function test_revision_view_caps_cpt() { 320 320 register_post_type( 321 321 $this->post_type, … … 359 359 * @ticket 16847 360 360 */ 361 function test_revision_restore_caps_cpt() {361 public function test_revision_restore_caps_cpt() { 362 362 register_post_type( 363 363 $this->post_type, … … 405 405 * @ticket 16847 406 406 */ 407 function test_revision_restore_caps_before_publish() {407 public function test_revision_restore_caps_before_publish() { 408 408 register_post_type( 409 409 $this->post_type, … … 465 465 * @ticket 16847 466 466 */ 467 function test_revision_diff_caps_cpt() {467 public function test_revision_diff_caps_cpt() { 468 468 register_post_type( 469 469 $this->post_type, … … 510 510 * @ticket 26042 511 511 */ 512 function test_wp_get_post_revisions_should_order_by_post_date() {512 public function test_wp_get_post_revisions_should_order_by_post_date() { 513 513 global $wpdb; 514 514 … … 546 546 * @ticket 26042 547 547 */ 548 function test_wp_get_post_revisions_should_order_by_ID_when_post_date_matches() {548 public function test_wp_get_post_revisions_should_order_by_ID_when_post_date_matches() { 549 549 $post = self::factory()->post->create_and_get( 550 550 array(
Note: See TracChangeset
for help on using the changeset viewer.