- Timestamp:
- 09/06/2022 10:09:49 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/wpRestMenusController.php
r52079 r54090 86 86 ); 87 87 88 $this->menu_id = $this->factory->term->create( $orig_args );88 $this->menu_id = self::factory()->term->create( $orig_args ); 89 89 90 90 register_meta( … … 134 134 $this->assertSame( array( 'v1' => true ), $data['endpoints'][0]['allow_batch'] ); 135 135 // Single. 136 $tag1 = $this->factory->tag->create( array( 'name' => 'Season 5' ) );136 $tag1 = self::factory()->tag->create( array( 'name' => 'Season 5' ) ); 137 137 $request = new WP_REST_Request( 'OPTIONS', '/wp/v2/menus/' . $tag1 ); 138 138 $response = rest_get_server()->dispatch( $request );
Note: See TracChangeset
for help on using the changeset viewer.