Skip to content
Snippets Groups Projects

#2441373 Upgrade tests to HTML5

Open Marco Villegas requested to merge issue/drupal-2441373:2441373-tests-to-html5 into 11.x
8 files
+ 19
28
Compare changes
  • Side-by-side
  • Inline
Files
8
@@ -71,7 +71,7 @@ public function testRenderLayout($layout_id, $config, $regions, array $html) {
@@ -71,7 +71,7 @@ public function testRenderLayout($layout_id, $config, $regions, array $html) {
$build_id_input = $this->cssSelect('input[name="form_build_id"]')[0]->asXML();
$build_id_input = $this->cssSelect('input[name="form_build_id"]')[0]->asXML();
$form_id_input = '<input data-drupal-selector="edit-the-form-id" type="hidden" name="form_id" value="the_form_id"/>';
$form_id_input = '<input data-drupal-selector="edit-the-form-id" type="hidden" name="form_id" value="the_form_id"/>';
$html[] = 'Test suffix';
$html[] = 'Test suffix';
$html[] = $build_id_input . $form_id_input . '</form>';
$html[] = $build_id_input . "\n" . $form_id_input . "\n" . '</form>';
// Match the HTML to the full form element.
// Match the HTML to the full form element.
$this->assertSame(implode("\n", $html), $this->cssSelect('#the-form-id')[0]->asXML());
$this->assertSame(implode("\n", $html), $this->cssSelect('#the-form-id')[0]->asXML());
Loading