- Timestamp:
- 03/15/2025 11:26:50 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-global-styles-revisions-controller.php
r59979 r59985 959 959 $request->set_param( 'per_page', 1 ); 960 960 $response = rest_get_server()->dispatch( $request ); 961 $this->assert Equals( 200, $response->get_status() );961 $this->assertSame( 200, $response->get_status() ); 962 962 $data = $response->get_data(); 963 963 $this->assertCount( 1, $data ); 964 $this->assert Equals( 3, $response->get_headers()['X-WP-Total'] );965 $this->assert Equals( 3, $response->get_headers()['X-WP-TotalPages'] );964 $this->assertSame( 3, $response->get_headers()['X-WP-Total'] ); 965 $this->assertSame( 3, $response->get_headers()['X-WP-TotalPages'] ); 966 966 967 967 // Test paged. … … 970 970 $request->set_param( 'per_page', 2 ); 971 971 $response = rest_get_server()->dispatch( $request ); 972 $this->assert Equals( 200, $response->get_status() );972 $this->assertSame( 200, $response->get_status() ); 973 973 $data = $response->get_data(); 974 974 $this->assertCount( 1, $data ); 975 $this->assert Equals( 3, $response->get_headers()['X-WP-Total'] );976 $this->assert Equals( 2, $response->get_headers()['X-WP-TotalPages'] );975 $this->assertSame( 3, $response->get_headers()['X-WP-Total'] ); 976 $this->assertSame( 2, $response->get_headers()['X-WP-TotalPages'] ); 977 977 978 978 // Test out of bounds.
Note: See TracChangeset
for help on using the changeset viewer.