Changeset 51331 for trunk/tests/phpunit/tests/post/formats.php
- Timestamp:
- 07/05/2021 05:21:53 PM (5 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
r50449 r51331 13 13 $result = set_post_format( $post_id, 'aside' ); 14 14 $this->assertNotWPError( $result ); 15 $this->assertI nternalType( 'array',$result );15 $this->assertIsArray( $result ); 16 16 $this->assertSame( 1, count( $result ) ); 17 17 … … 21 21 $result = set_post_format( $post_id, 'standard' ); 22 22 $this->assertNotWPError( $result ); 23 $this->assertI nternalType( 'array',$result );23 $this->assertIsArray( $result ); 24 24 $this->assertSame( 0, count( $result ) ); 25 25 26 26 $result = set_post_format( $post_id, '' ); 27 27 $this->assertNotWPError( $result ); 28 $this->assertI nternalType( 'array',$result );28 $this->assertIsArray( $result ); 29 29 $this->assertSame( 0, count( $result ) ); 30 30 } … … 41 41 $result = set_post_format( $post_id, 'aside' ); 42 42 $this->assertNotWPError( $result ); 43 $this->assertI nternalType( 'array',$result );43 $this->assertIsArray( $result ); 44 44 $this->assertSame( 1, count( $result ) ); 45 45 // The format can be set but not retrieved until it is registered. … … 54 54 $result = set_post_format( $post_id, 'standard' ); 55 55 $this->assertNotWPError( $result ); 56 $this->assertI nternalType( 'array',$result );56 $this->assertIsArray( $result ); 57 57 $this->assertSame( 0, count( $result ) ); 58 58 59 59 $result = set_post_format( $post_id, '' ); 60 60 $this->assertNotWPError( $result ); 61 $this->assertI nternalType( 'array',$result );61 $this->assertIsArray( $result ); 62 62 $this->assertSame( 0, count( $result ) ); 63 63 … … 73 73 $result = set_post_format( $post_id, 'aside' ); 74 74 $this->assertNotWPError( $result ); 75 $this->assertI nternalType( 'array',$result );75 $this->assertIsArray( $result ); 76 76 $this->assertSame( 1, count( $result ) ); 77 77 $this->assertTrue( has_post_format( 'aside', $post_id ) ); … … 79 79 $result = set_post_format( $post_id, 'standard' ); 80 80 $this->assertNotWPError( $result ); 81 $this->assertI nternalType( 'array',$result );81 $this->assertIsArray( $result ); 82 82 $this->assertSame( 0, count( $result ) ); 83 83 // Standard is a special case. It shows as false when set.
Note: See TracChangeset
for help on using the changeset viewer.