Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / views_ui / tests / src / Functional / DisplayAttachmentTest.php
similarity index 95%
rename from web/core/modules/views_ui/src/Tests/DisplayAttachmentTest.php
rename to web/core/modules/views_ui/tests/src/Functional/DisplayAttachmentTest.php
index 480172bb33c59124d05590885eb06d422c08ef60..057a785c2ab0cd66cb0b5e79d5d857f4133d57e4 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-namespace Drupal\views_ui\Tests;
+namespace Drupal\Tests\views_ui\Functional;
 
 use Drupal\views\Views;
 
@@ -16,6 +16,7 @@ class DisplayAttachmentTest extends UITestBase {
    * Views used by this test.
    *
    * @var array
+   * .
    */
   public static $testViews = ['test_attachment_ui'];
 
@@ -41,7 +42,7 @@ class DisplayAttachmentTest extends UITestBase {
     $this->assertEscaped('<em>Page</em>');
     $this->assertNoRaw('<em>Page</em>');
     $result = $this->xpath('//a[@id = :id]', [':id' => 'views-attachment-1-displays']);
-    $this->assertEqual($result[0]->attributes()->title, t('Page'));
+    $this->assertEqual($result[0]->getAttribute('title'), t('Page'));
     $this->drupalPostForm(NULL, [], t('Save'));
 
     $view = Views::getView('test_attachment_ui');
@@ -50,7 +51,7 @@ class DisplayAttachmentTest extends UITestBase {
 
     $this->drupalPostForm($attachment_display_url, ['displays[default]' => 1, 'displays[page_1]' => 1], t('Apply'));
     $result = $this->xpath('//a[@id = :id]', [':id' => 'views-attachment-1-displays']);
-    $this->assertEqual($result[0]->attributes()->title, t('Multiple displays'));
+    $this->assertEqual($result[0]->getAttribute('title'), t('Multiple displays'));
     $this->drupalPostForm(NULL, [], t('Save'));
 
     $view = Views::getView('test_attachment_ui');