Commit a94cd357 authored by Chris Burge's avatar Chris Burge Committed by Chris Burge
Browse files

Issue #3278105 by Chris Burge: Branch Test Failure on PHP 8.1

parent 44b4f6d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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');