Make WordPress Core


Ignore:
Timestamp:
01/04/2015 08:05:53 PM (10 years ago)
Author:
boonebgorges
Message:

Remove non-built-in post statuses during each unit test teardown.

See #29167.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/includes/helpers.php

    r30687 r31046  
    160160        }
    161161    }
     162
     163    public function test__unregister_post_status() {
     164        register_post_status( 'foo' );
     165        _unregister_post_status( 'foo' );
     166
     167        $stati = get_post_stati();
     168
     169        $this->assertFalse( isset( $stati['foo'] ) );
     170    }
    162171}
Note: See TracChangeset for help on using the changeset viewer.