Changeset 42863 for trunk/tests/phpunit/tests/admin/includesPost.php
- Timestamp:
- 03/20/2018 10:34:11 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesPost.php
r42343 r42863 33 33 34 34 $_results = _wp_translate_postdata( false, $_post_data ); 35 $this->assertNot InstanceOf( 'WP_Error',$_results );35 $this->assertNotWPError( $_results ); 36 36 $this->assertEquals( $_post_data['post_author'], $_results['post_author'] ); 37 37 $this->assertEquals( 'draft', $_results['post_status'] ); … … 44 44 45 45 $_results = _wp_translate_postdata( false, $_post_data ); 46 $this->assertNot InstanceOf( 'WP_Error',$_results );46 $this->assertNotWPError( $_results ); 47 47 $this->assertEquals( $_post_data['post_author'], $_results['post_author'] ); 48 48 $this->assertEquals( 'pending', $_results['post_status'] ); … … 83 83 84 84 $_results = _wp_translate_postdata( false, $_post_data ); 85 $this->assertNot InstanceOf( 'WP_Error',$_results );85 $this->assertNotWPError( $_results ); 86 86 $this->assertEquals( $_post_data['post_author'], $_results['post_author'] ); 87 87 $this->assertEquals( 'draft', $_results['post_status'] ); … … 94 94 95 95 $_results = _wp_translate_postdata( false, $_post_data ); 96 $this->assertNot InstanceOf( 'WP_Error',$_results );96 $this->assertNotWPError( $_results ); 97 97 $this->assertEquals( $_post_data['post_author'], $_results['post_author'] ); 98 98 $this->assertEquals( 'publish', $_results['post_status'] ); … … 105 105 106 106 $_results = _wp_translate_postdata( false, $_post_data ); 107 $this->assertNot InstanceOf( 'WP_Error',$_results );107 $this->assertNotWPError( $_results ); 108 108 $this->assertEquals( $_post_data['post_author'], $_results['post_author'] ); 109 109 $this->assertEquals( 'draft', $_results['post_status'] ); … … 118 118 119 119 $_results = _wp_translate_postdata( true, $_post_data ); 120 $this->assertNot InstanceOf( 'WP_Error',$_results );120 $this->assertNotWPError( $_results ); 121 121 $this->assertEquals( $_post_data['post_author'], $_results['post_author'] ); 122 122 $this->assertEquals( 'draft', $_results['post_status'] );
Note: See TracChangeset
for help on using the changeset viewer.