Skip to content
Permalink
Browse files

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

Props birgire.
See #42209.


git-svn-id: https://develop.svn.wordpress.org/trunk@45815 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
kadamwhite committed Aug 15, 2019
1 parent 7113ab1 commit 5a9810356750546d8bd852046734f04b251c7c30
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/phpunit/tests/rest-api/rest-taxonomies-controller.php
@@ -195,6 +195,9 @@ public function test_prepare_item_limit_fields() {
);
}
/**
* @ticket 42209
*/
public function test_object_types_is_an_array_if_object_type_is_unregistered() {
register_taxonomy_for_object_type( 'category', 'page' );
register_taxonomy_for_object_type( 'category', 'attachment' );
@@ -208,6 +211,7 @@ public function test_object_types_is_an_array_if_object_type_is_unregistered() {
$this->assertEquals( 'post', $types[0] );
$this->assertArrayHasKey( 1, $types );
$this->assertEquals( 'attachment', $types[1] );
$this->assertEquals( 2, count( $types ) );
}
public function test_get_item_schema() {

0 comments on commit 5a98103

Please sign in to comment.
You can’t perform that action at this time.