- Timestamp:
- 07/19/2021 02:00:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-users-controller.php
r51461 r51462 323 323 ); 324 324 $this->assertStringNotContainsString( 'rel="prev"', $headers['Link'] ); 325 $this->assert Contains( '<' . $next_link . '>; rel="next"', $headers['Link'] );325 $this->assertStringContainsString( '<' . $next_link . '>; rel="next"', $headers['Link'] ); 326 326 327 327 // 3rd page. … … 341 341 rest_url( 'wp/v2/users' ) 342 342 ); 343 $this->assert Contains( '<' . $prev_link . '>; rel="prev"', $headers['Link'] );343 $this->assertStringContainsString( '<' . $prev_link . '>; rel="prev"', $headers['Link'] ); 344 344 $next_link = add_query_arg( 345 345 array( … … 348 348 rest_url( 'wp/v2/users' ) 349 349 ); 350 $this->assert Contains( '<' . $next_link . '>; rel="next"', $headers['Link'] );350 $this->assertStringContainsString( '<' . $next_link . '>; rel="next"', $headers['Link'] ); 351 351 352 352 // Last page. … … 363 363 rest_url( 'wp/v2/users' ) 364 364 ); 365 $this->assert Contains( '<' . $prev_link . '>; rel="prev"', $headers['Link'] );365 $this->assertStringContainsString( '<' . $prev_link . '>; rel="prev"', $headers['Link'] ); 366 366 $this->assertStringNotContainsString( 'rel="next"', $headers['Link'] ); 367 367 … … 379 379 rest_url( 'wp/v2/users' ) 380 380 ); 381 $this->assert Contains( '<' . $prev_link . '>; rel="prev"', $headers['Link'] );381 $this->assertStringContainsString( '<' . $prev_link . '>; rel="prev"', $headers['Link'] ); 382 382 $this->assertStringNotContainsString( 'rel="next"', $headers['Link'] ); 383 383 } … … 412 412 ); 413 413 $headers = $response->get_headers(); 414 $this->assert Contains( '<' . $prev_link . '>; rel="prev"', $headers['Link'] );414 $this->assertStringContainsString( '<' . $prev_link . '>; rel="prev"', $headers['Link'] ); 415 415 } 416 416
Note: See TracChangeset
for help on using the changeset viewer.