diff --git a/core/modules/block_content/src/Tests/Views/BlockContentTestBase.php b/core/modules/block_content/src/Tests/Views/BlockContentTestBase.php index db665c9e45..3ea2dba06c 100644 --- a/core/modules/block_content/src/Tests/Views/BlockContentTestBase.php +++ b/core/modules/block_content/src/Tests/Views/BlockContentTestBase.php @@ -2,6 +2,8 @@ namespace Drupal\block_content\Tests\Views; +@trigger_error('\Drupal\block_content\Tests\Views\BlockContentTestBase is deprecated in 8.4.0 and will be removed before Drupal 9.0.0. Use \Drupal\Tests\block_content\Functional\Views\BlockContentTestBase.', E_USER_DEPRECATED); + use Drupal\block_content\Entity\BlockContent; use Drupal\block_content\Entity\BlockContentType; use Drupal\Component\Utility\SafeMarkup; @@ -10,6 +12,9 @@ /** * Base class for all block_content tests. + * + * @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. + * Use \Drupal\Tests\block_content\Functional\Views\BlockContentTestBase. */ abstract class BlockContentTestBase extends ViewTestBase { diff --git a/core/modules/block_content/src/Tests/Views/BlockContentFieldFilterTest.php b/core/modules/block_content/tests/src/Functional/Views/BlockContentFieldFilterTest.php similarity index 95% rename from core/modules/block_content/src/Tests/Views/BlockContentFieldFilterTest.php rename to core/modules/block_content/tests/src/Functional/Views/BlockContentFieldFilterTest.php index 1ff4fb55ba..a016ab9141 100644 --- a/core/modules/block_content/src/Tests/Views/BlockContentFieldFilterTest.php +++ b/core/modules/block_content/tests/src/Functional/Views/BlockContentFieldFilterTest.php @@ -1,6 +1,6 @@ save(); diff --git a/core/modules/block_content/src/Tests/Views/BlockContentIntegrationTest.php b/core/modules/block_content/tests/src/Functional/Views/BlockContentIntegrationTest.php similarity index 95% rename from core/modules/block_content/src/Tests/Views/BlockContentIntegrationTest.php rename to core/modules/block_content/tests/src/Functional/Views/BlockContentIntegrationTest.php index 8ec17e2381..93661578bd 100644 --- a/core/modules/block_content/src/Tests/Views/BlockContentIntegrationTest.php +++ b/core/modules/block_content/tests/src/Functional/Views/BlockContentIntegrationTest.php @@ -1,6 +1,6 @@ xpath('//span[@class="field-content"]'); $ids = []; foreach ($result as $element) { - $ids[] = (int) $element; + $ids[] = $element->getText(); } $this->assertEqual($ids, $expected_ids); } diff --git a/core/modules/block_content/src/Tests/Views/BlockContentRedirectTest.php b/core/modules/block_content/tests/src/Functional/Views/BlockContentRedirectTest.php similarity index 95% rename from core/modules/block_content/src/Tests/Views/BlockContentRedirectTest.php rename to core/modules/block_content/tests/src/Functional/Views/BlockContentRedirectTest.php index 828aa8468b..10ce140e96 100644 --- a/core/modules/block_content/src/Tests/Views/BlockContentRedirectTest.php +++ b/core/modules/block_content/tests/src/Functional/Views/BlockContentRedirectTest.php @@ -1,6 +1,6 @@ 'basic', 'label' => 'basic',