Ticket #24354: 24354.unit-test.diff
File 24354.unit-test.diff, 516 bytes (added by , 11 years ago) |
---|
-
tests/phpunit/tests/taxonomy.php
234 234 ); 235 235 $this->assertEquals( 0, wp_insert_category( $cat, false ) ); 236 236 } 237 238 /** 239 * @ticket 24354 240 */ 241 function test_cat_has_ampersand() { 242 $name = 'News & Press'; 243 $expected = wp_create_category( $name ); 244 $this->assertEquals( $expected, get_cat_id( $name ) ); 245 } 237 246 }