Loading tests/src/FunctionalJavascript/TemplateFormTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -140,7 +140,7 @@ class TemplateFormTest extends WebDriverTestBase { $abs_template_path = \Drupal::service('file_system')->realpath($template_path); $template_code = file_get_contents($abs_template_path); $element = $page->find('xpath', '//details[@id="edit-template-load"]//div[contains(@class, "template-code")]/pre'); $this->assertEquals($element->getHtml(), htmlentities($template_code)); $this->assertEquals($element->getHtml(), htmlentities($template_code, ENT_COMPAT | ENT_SUBSTITUTE | ENT_HTML401)); // Insert the template code into the template_code field above. $page->pressButton('Insert'); Loading Loading
tests/src/FunctionalJavascript/TemplateFormTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -140,7 +140,7 @@ class TemplateFormTest extends WebDriverTestBase { $abs_template_path = \Drupal::service('file_system')->realpath($template_path); $template_code = file_get_contents($abs_template_path); $element = $page->find('xpath', '//details[@id="edit-template-load"]//div[contains(@class, "template-code")]/pre'); $this->assertEquals($element->getHtml(), htmlentities($template_code)); $this->assertEquals($element->getHtml(), htmlentities($template_code, ENT_COMPAT | ENT_SUBSTITUTE | ENT_HTML401)); // Insert the template code into the template_code field above. $page->pressButton('Insert'); Loading