Make WordPress Core

Changeset 45815


Ignore:
Timestamp:
08/15/2019 11:08:31 PM (5 years ago)
Author:
kadamwhite
Message:

REST API: Add @ticket annotation to test from [45813].

Props birgire.
See #42209.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-taxonomies-controller.php

    r45813 r45815  
    196196    }
    197197
     198    /**
     199     * @ticket 42209
     200     */
    198201    public function test_object_types_is_an_array_if_object_type_is_unregistered() {
    199202        register_taxonomy_for_object_type( 'category', 'page' );
     
    209212        $this->assertArrayHasKey( 1, $types );
    210213        $this->assertEquals( 'attachment', $types[1] );
     214        $this->assertEquals( 2, count( $types ) );
    211215    }
    212216
Note: See TracChangeset for help on using the changeset viewer.