Changeset 42863 for trunk/tests/phpunit/tests/post/formats.php
- Timestamp:
- 03/20/2018 10:34:11 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/post/formats.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/formats.php
r42343 r42863 16 16 17 17 $result = set_post_format( $post_id, 'aside' ); 18 $this->assertNot InstanceOf( 'WP_Error',$result );18 $this->assertNotWPError( $result ); 19 19 $this->assertInternalType( 'array', $result ); 20 20 $this->assertEquals( 1, count( $result ) ); … … 24 24 25 25 $result = set_post_format( $post_id, 'standard' ); 26 $this->assertNot InstanceOf( 'WP_Error',$result );26 $this->assertNotWPError( $result ); 27 27 $this->assertInternalType( 'array', $result ); 28 28 $this->assertEquals( 0, count( $result ) ); 29 29 30 30 $result = set_post_format( $post_id, '' ); 31 $this->assertNot InstanceOf( 'WP_Error',$result );31 $this->assertNotWPError( $result ); 32 32 $this->assertInternalType( 'array', $result ); 33 33 $this->assertEquals( 0, count( $result ) ); … … 44 44 45 45 $result = set_post_format( $post_id, 'aside' ); 46 $this->assertNot InstanceOf( 'WP_Error',$result );46 $this->assertNotWPError( $result ); 47 47 $this->assertInternalType( 'array', $result ); 48 48 $this->assertEquals( 1, count( $result ) ); … … 57 57 58 58 $result = set_post_format( $post_id, 'standard' ); 59 $this->assertNot InstanceOf( 'WP_Error',$result );59 $this->assertNotWPError( $result ); 60 60 $this->assertInternalType( 'array', $result ); 61 61 $this->assertEquals( 0, count( $result ) ); 62 62 63 63 $result = set_post_format( $post_id, '' ); 64 $this->assertNot InstanceOf( 'WP_Error',$result );64 $this->assertNotWPError( $result ); 65 65 $this->assertInternalType( 'array', $result ); 66 66 $this->assertEquals( 0, count( $result ) ); … … 76 76 77 77 $result = set_post_format( $post_id, 'aside' ); 78 $this->assertNot InstanceOf( 'WP_Error',$result );78 $this->assertNotWPError( $result ); 79 79 $this->assertInternalType( 'array', $result ); 80 80 $this->assertEquals( 1, count( $result ) ); … … 82 82 83 83 $result = set_post_format( $post_id, 'standard' ); 84 $this->assertNot InstanceOf( 'WP_Error',$result );84 $this->assertNotWPError( $result ); 85 85 $this->assertInternalType( 'array', $result ); 86 86 $this->assertEquals( 0, count( $result ) );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)