Make WordPress Core

Changeset 36247


Ignore:
Timestamp:
01/09/2016 11:34:27 PM (9 years ago)
Author:
johnbillion
Message:

Taxonomy: More tests for unregister_taxonomy().

See #35227

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/taxonomy.php

    r36243 r36247  
    633633        $this->assertSame( array(), $wp_filter['wp_ajax_add-foo'] );
    634634    }
     635
     636    /**
     637     * @ticket 35227
     638     */
     639    public function test_taxonomy_does_not_exist_after_unregister_taxonomy() {
     640        register_taxonomy( 'foo', 'post' );
     641        $this->assertTrue( taxonomy_exists( 'foo' ) );
     642        unregister_taxonomy( 'foo' );
     643        $this->assertFalse( taxonomy_exists( 'foo' ) );
     644    }
     645
    635646}
Note: See TracChangeset for help on using the changeset viewer.