Changeset 47122 for trunk/tests/phpunit/tests/post/types.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/post/types.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/types.php
r46586 r47122 33 33 $this->assertEquals( 'foo', $pobj->name ); 34 34 35 // Test some defaults 35 // Test some defaults. 36 36 $this->assertFalse( is_post_type_hierarchical( 'foo' ) ); 37 37 $this->assertEquals( array(), get_object_taxonomies( 'foo' ) ); … … 46 46 */ 47 47 function test_register_post_type_with_too_long_name() { 48 // post type too long48 // Post type too long. 49 49 $this->assertInstanceOf( 'WP_Error', register_post_type( 'abcdefghijklmnopqrstuvwxyz0123456789' ) ); 50 50 } … … 56 56 */ 57 57 function test_register_post_type_with_empty_name() { 58 // post type too short58 // Post type too short. 59 59 $this->assertInstanceOf( 'WP_Error', register_post_type( '' ) ); 60 60 } … … 334 334 $this->assertNotContains( '%foo%', $wp_rewrite->rewritecode ); 335 335 $this->assertNotContains( 'bar=', $wp_rewrite->queryreplace ); 336 $this->assertSame( -- $count_before, count( $wp_rewrite->rewritereplace ) ); // Array was reduced by one value.336 $this->assertSame( --$count_before, count( $wp_rewrite->rewritereplace ) ); // Array was reduced by one value. 337 337 } 338 338
Note: See TracChangeset
for help on using the changeset viewer.