- Timestamp:
- 10/28/2016 02:06:17 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-users-controller.php
r38980 r38990 636 636 637 637 $response = $this->server->dispatch( $request ); 638 $this->assertEquals( 200, $response->get_status() );638 $this->assertEquals( 302, $response->get_status() ); 639 639 640 640 $headers = $response->get_headers(); 641 $this->assertArrayNotHasKey( 'Location', $headers ); 642 643 $links = $response->get_links(); 644 $this->assertEquals( rest_url( 'wp/v2/users/' . self::$user ), $links['self'][0]['href'] ); 641 $this->assertArrayHasKey( 'Location', $headers ); 642 $this->assertEquals( rest_url( 'wp/v2/users/' . self::$user ), $headers['Location'] ); 645 643 } 646 644
Note: See TracChangeset
for help on using the changeset viewer.