MDL-66593 core_backup: Replace h5p/embed.php url for H5PEMBED@$
[moodle.git] / backup / util / helper / tests / restore_structure_parser_processor_test.php
index 069163a..ea5ab2c 100644 (file)
@@ -107,6 +107,11 @@ class restore_structure_parser_processor_test extends advanced_testcase {
                 "<a href='http://test.test/file.php?file=%2F1%2F1.jpg&amp;forcedownload=1'>Image</a>",
                 false
             ),
+            array(
+                "<iframe src='$@H5PEMBED@$?url=testurl'></iframe>",
+                "<iframe src='http://test.test/h5p/embed.php?url=testurl'></iframe>",
+                true
+            ),
         );
     }