Changeset 51196 for trunk/tests/phpunit/tests/post/revisions.php
- Timestamp:
- 06/22/2021 04:34:29 AM (5 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/post/revisions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/revisions.php
r51138 r51196 624 624 } 625 625 ); 626 626 627 $this->assertSame( $generic, wp_revisions_to_keep( $post ) ); 627 628 … … 634 635 } 635 636 ); 637 636 638 $this->assertSame( $expected, wp_revisions_to_keep( $post ) ); 637 639 } … … 643 645 */ 644 646 public function test_wp_save_post_revision_error() { 645 $post = self::factory()->post->create_and_get(647 $post = self::factory()->post->create_and_get( 646 648 array( 647 649 'ID' => PHP_INT_MAX, 648 650 ) 649 651 ); 652 650 653 $revision = _wp_put_post_revision( $post ); 651 $this->assertTrue( is_wp_error( $revision ) ); 654 655 $this->assertWPError( $revision ); 652 656 } 653 657 }
Note: See TracChangeset
for help on using the changeset viewer.