- 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-comments-controller.php
r51461 r51462 823 823 ); 824 824 $this->assertStringNotContainsString( 'rel="prev"', $headers['Link'] ); 825 $this->assert Contains( '<' . $next_link . '>; rel="next"', $headers['Link'] );825 $this->assertStringContainsString( '<' . $next_link . '>; rel="next"', $headers['Link'] ); 826 826 827 827 // 3rd page. … … 845 845 rest_url( '/wp/v2/comments' ) 846 846 ); 847 $this->assert Contains( '<' . $prev_link . '>; rel="prev"', $headers['Link'] );847 $this->assertStringContainsString( '<' . $prev_link . '>; rel="prev"', $headers['Link'] ); 848 848 $next_link = add_query_arg( 849 849 array( … … 852 852 rest_url( '/wp/v2/comments' ) 853 853 ); 854 $this->assert Contains( '<' . $next_link . '>; rel="next"', $headers['Link'] );854 $this->assertStringContainsString( '<' . $next_link . '>; rel="next"', $headers['Link'] ); 855 855 856 856 // Last page. … … 867 867 rest_url( '/wp/v2/comments' ) 868 868 ); 869 $this->assert Contains( '<' . $prev_link . '>; rel="prev"', $headers['Link'] );869 $this->assertStringContainsString( '<' . $prev_link . '>; rel="prev"', $headers['Link'] ); 870 870 $this->assertStringNotContainsString( 'rel="next"', $headers['Link'] ); 871 871 … … 883 883 rest_url( '/wp/v2/comments' ) 884 884 ); 885 $this->assert Contains( '<' . $prev_link . '>; rel="prev"', $headers['Link'] );885 $this->assertStringContainsString( '<' . $prev_link . '>; rel="prev"', $headers['Link'] ); 886 886 $this->assertStringNotContainsString( 'rel="next"', $headers['Link'] ); 887 887 }
Note: See TracChangeset
for help on using the changeset viewer.