Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / views_ui / tests / src / Functional / DisplayFeedTest.php
similarity index 92%
rename from web/core/modules/views_ui/src/Tests/DisplayFeedTest.php
rename to web/core/modules/views_ui/tests/src/Functional/DisplayFeedTest.php
index d8d003191ed004586252683dfa95d6c07215ac94..9dba45010f09ba620310921bb8b65908f87ed0d4 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-namespace Drupal\views_ui\Tests;
+namespace Drupal\Tests\views_ui\Functional;
 
 /**
  * Tests the UI for feed display plugin.
@@ -57,10 +57,9 @@ class DisplayFeedTest extends UITestBase {
     $result = $this->xpath('//div[@id="edit-displays"]/div');
     $options = [];
     foreach ($result as $item) {
-      foreach ($item->input->attributes() as $attribute => $value) {
-        if ($attribute == 'value') {
-          $options[] = (string) $value;
-        }
+      $input_node = $item->find('css', 'input');
+      if ($input_node->hasAttribute('value')) {
+        $options[] = $input_node->getAttribute('value');
       }
     }