Changeset 31450 for trunk/tests/phpunit/tests/post/types.php
- Timestamp:
- 02/13/2015 04:42:36 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/post/types.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/types.php
r25002 r31450 18 18 19 19 _unregister_post_type( 'foo' ); 20 } 21 22 /** 23 * @ticket 31134 24 * 25 * @expectedIncorrectUsage register_post_type 26 */ 27 function test_register_post_type_length_long() { 28 // post type too long 29 $this->assertInstanceOf( 'WP_Error', register_post_type( 'abcdefghijklmnopqrstuvwxyz0123456789' ) ); 30 } 31 32 /** 33 * @ticket 31134 34 * 35 * @expectedIncorrectUsage register_post_type 36 */ 37 function test_register_post_type_length_short() { 38 // post type too short 39 $this->assertInstanceOf( 'WP_Error', register_post_type( '' ) ); 20 40 } 21 41
Note:
See TracChangeset
for help on using the changeset viewer.