<?php
-namespace Drupal\views_ui\Tests;
+namespace Drupal\Tests\views_ui\Functional;
/**
* Tests the UI for feed display plugin.
$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');
}
}