Changeset 31457 for trunk/tests/phpunit/tests/taxonomy.php
- Timestamp:
- 02/13/2015 11:33:56 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/taxonomy.php
r31449 r31457 155 155 156 156 /** 157 * @ticket 21593 158 * 159 * @expectedIncorrectUsage register_taxonomy 160 */ 161 function test_register_taxonomy_with_too_long_name() { 162 $this->assertInstanceOf( 'WP_Error', register_taxonomy( 'abcdefghijklmnopqrstuvwxyz0123456789', 'post', array() ) ); 163 } 164 165 /** 157 166 * @ticket 31135 158 167 * 159 168 * @expectedIncorrectUsage register_taxonomy 160 169 */ 161 function test_register_ short_taxonomy() {170 function test_register_taxonomy_with_empty_name() { 162 171 $this->assertInstanceOf( 'WP_Error', register_taxonomy( '', 'post', array() ) ); 163 }164 165 /**166 * @ticket 21593167 *168 * @expectedIncorrectUsage register_taxonomy169 */170 function test_register_long_taxonomy() {171 $this->assertInstanceOf( 'WP_Error', register_taxonomy( 'abcdefghijklmnopqrstuvwxyz0123456789', 'post', array() ) );172 172 } 173 173
Note: See TracChangeset
for help on using the changeset viewer.