Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / views / tests / src / Kernel / Handler / AreaResultTest.php
index 8b67fec67bb9df697be587d7ec4649457dd1303a..31e252aef2cf18b6911fd14773af32eb7dc74c78 100644 (file)
@@ -57,6 +57,7 @@ class AreaResultTest extends ViewsKernelTestBase {
     $output = \Drupal::service('renderer')->renderRoot($output);
     $this->setRawContent($output);
     $this->assertText('start: 0 | end: 0 | total: 0 | label: test_area_result | per page: 0 | current page: 1 | current record count: 0 | page count: 1');
+    $this->assertRaw('<header>');
 
     // Test that the area is not displayed if we have not checked the empty
     // checkbox.
@@ -67,6 +68,8 @@ class AreaResultTest extends ViewsKernelTestBase {
     $output = \Drupal::service('renderer')->renderRoot($output);
     $this->setRawContent($output);
     $this->assertNoText('start: 0 | end: 0 | total: 0 | label: test_area_result | per page: 0 | current page: 1 | current record count: 0 | page count: 1');
+    // Make sure the empty header region isn't rendered.
+    $this->assertNoRaw('<header>');
   }
 
 }