- Timestamp:
- 06/02/2024 08:01:44 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-users-controller.php
r57239 r58283 181 181 $response = rest_get_server()->dispatch( $request ); 182 182 $data = $response->get_data(); 183 $this->assertSame( array( 'v1' => true ), $data['endpoints'][0]['allow_batch'] ); 183 184 $this->assertSame( 'view', $data['endpoints'][0]['args']['context']['default'] ); 184 185 $this->assertSame( array( 'view', 'embed', 'edit' ), $data['endpoints'][0]['args']['context']['enum'] ); … … 187 188 $response = rest_get_server()->dispatch( $request ); 188 189 $data = $response->get_data(); 190 $this->assertSame( array( 'v1' => true ), $data['endpoints'][0]['allow_batch'] ); 189 191 $this->assertSame( 'view', $data['endpoints'][0]['args']['context']['default'] ); 190 192 $this->assertSame( array( 'view', 'embed', 'edit' ), $data['endpoints'][0]['args']['context']['enum'] );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)