Changeset 40805 for trunk/tests/phpunit/tests/rest-api/rest-server.php
- Timestamp:
- 05/19/2017 08:26:48 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-server.php
r40238 r40805 764 764 765 765 foreach ( wp_get_nocache_headers() as $header => $value ) { 766 if ( empty( $value ) ) { 767 continue; 768 } 769 766 770 $this->assertTrue( isset( $headers[ $header ] ), sprintf( 'Header %s is not present in the response.', $header ) ); 767 771 $this->assertEquals( $value, $headers[ $header ] ); 768 772 } 773 774 // Last-Modified should be unset as per #WP23021 775 $this->assertFalse( isset( $headers['Last-Modified'] ), 'Last-Modified should not be sent.' ); 769 776 } 770 777
Note: See TracChangeset
for help on using the changeset viewer.