public function test_get_scripts__did_convert() { $source = '<iframe src="https://example.com/embed/132886713" width="500" height="281"></iframe>'; $expected = array('amp-iframe' => 'https://cdn.ampproject.org/v0/amp-iframe-0.1.js'); $dom = AMP_DOM_Utils::get_dom_from_content($source); $sanitizer = new AMP_Iframe_Sanitizer($dom); $sanitizer->sanitize(); $scripts = $sanitizer->get_scripts(); $this->assertEquals($expected, $scripts); }