Changeset 45815
- Timestamp:
- 08/15/2019 11:08:31 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-taxonomies-controller.php
r45813 r45815 196 196 } 197 197 198 /** 199 * @ticket 42209 200 */ 198 201 public function test_object_types_is_an_array_if_object_type_is_unregistered() { 199 202 register_taxonomy_for_object_type( 'category', 'page' ); … … 209 212 $this->assertArrayHasKey( 1, $types ); 210 213 $this->assertEquals( 'attachment', $types[1] ); 214 $this->assertEquals( 2, count( $types ) ); 211 215 } 212 216
Note: See TracChangeset
for help on using the changeset viewer.