Make WordPress Core

Ticket #24354: 24354.unit-test.diff

File 24354.unit-test.diff, 516 bytes (added by MikeHansenMe, 11 years ago)
  • tests/phpunit/tests/taxonomy.php

     
    234234                );
    235235                $this->assertEquals( 0, wp_insert_category( $cat, false ) );
    236236        }
     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        }
    237246}