Changeset 44580 for trunk/tests/phpunit/tests/customize/manager.php
- Timestamp:
- 01/14/2019 06:37:30 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/manager.php
r43571 r44580 849 849 * 850 850 * @ticket 30937 851 * @ticket 40020 851 852 * @covers WP_Customize_Manager::filter_iframe_security_headers() 852 853 */ 853 854 function test_filter_iframe_security_headers() { 854 $customize_url = admin_url( 'customize.php' );855 855 $wp_customize = new WP_Customize_Manager(); 856 856 $headers = $wp_customize->filter_iframe_security_headers( array() ); 857 857 $this->assertArrayHasKey( 'X-Frame-Options', $headers ); 858 858 $this->assertArrayHasKey( 'Content-Security-Policy', $headers ); 859 $this->assertEquals( "ALLOW-FROM $customize_url", $headers['X-Frame-Options'] ); 859 $this->assertEquals( 'SAMEORIGIN', $headers['X-Frame-Options'] ); 860 $this->assertEquals( "frame-ancestors 'self'", $headers['Content-Security-Policy'] ); 860 861 } 861 862
Note: See TracChangeset
for help on using the changeset viewer.