Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / block_content / tests / src / Functional / Views / BlockContentIntegrationTest.php
similarity index 95%
rename from web/core/modules/block_content/src/Tests/Views/BlockContentIntegrationTest.php
rename to web/core/modules/block_content/tests/src/Functional/Views/BlockContentIntegrationTest.php
index 8ec17e238165c6dec7a6a585dcf2ace7bfd234c5..93661578bd9df34229d0a1880bfee8c1f91f3603 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-namespace Drupal\block_content\Tests\Views;
+namespace Drupal\Tests\block_content\Functional\Views;
 
 /**
  * Tests the block_content integration into views.
@@ -59,7 +59,7 @@ class BlockContentIntegrationTest extends BlockContentTestBase {
     $result = $this->xpath('//span[@class="field-content"]');
     $ids = [];
     foreach ($result as $element) {
-      $ids[] = (int) $element;
+      $ids[] = $element->getText();
     }
     $this->assertEqual($ids, $expected_ids);
   }