Changeset 35437 for trunk/tests/phpunit/tests/oembed/filterResult.php
- Timestamp:
- 10/29/2015 11:10:46 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/oembed/filterResult.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/oembed/filterResult.php
r34903 r35437 79 79 $this->assertFalse( wp_filter_oembed_result( '', (object) array( 'type' => 'rich' ), '' ) ); 80 80 } 81 82 function test_filter_oembed_result_blockquote_adds_style_to_iframe() { 83 $html = '<blockquote></blockquote><iframe></iframe>'; 84 $actual = wp_filter_oembed_result( $html, (object) array( 'type' => 'rich' ), '' ); 85 86 $this->assertEquals( '<blockquote></blockquote><iframe sandbox="allow-scripts" security="restricted" style="display:none;"></iframe>', $actual ); 87 } 88 89 function test_filter_oembed_result_allowed_html() { 90 $html = '<blockquote><strong><a href="" target=""></a></strong></blockquote><iframe></iframe>'; 91 $actual = wp_filter_oembed_result( $html, (object) array( 'type' => 'rich' ), '' ); 92 93 $this->assertEquals( '<blockquote><a href=""></a></blockquote><iframe sandbox="allow-scripts" security="restricted" style="display:none;"></iframe>', $actual ); 94 } 81 95 }
Note: See TracChangeset
for help on using the changeset viewer.