X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcomment%2Fsrc%2FTests%2FViews%2FCommentTestBase.php;h=c364e2631f5250e8aff8fc92db99a5c3624eca3d;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=d7bec0481269cbc7aefbc50c0293299a86382678;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/comment/src/Tests/Views/CommentTestBase.php b/web/core/modules/comment/src/Tests/Views/CommentTestBase.php index d7bec0481..c364e2631 100644 --- a/web/core/modules/comment/src/Tests/Views/CommentTestBase.php +++ b/web/core/modules/comment/src/Tests/Views/CommentTestBase.php @@ -2,13 +2,20 @@ namespace Drupal\comment\Tests\Views; +@trigger_error(__NAMESPACE__ . '\CommentTestBase is deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Use \Drupal\Tests\comment\Functional\Views\CommentTestBase instead. See http://www.drupal.org/node/2908490', E_USER_DEPRECATED); + use Drupal\comment\Tests\CommentTestTrait; use Drupal\views\Tests\ViewTestBase; use Drupal\views\Tests\ViewTestData; use Drupal\comment\Entity\Comment; /** - * Tests the argument_comment_user_uid handler. + * Provides setup and helper methods for comment views tests. + * + * @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. + * Use \Drupal\Tests\comment\Functional\Views\CommentTestBase instead. + * + * @see https://www.drupal.org/node/2908490 */ abstract class CommentTestBase extends ViewTestBase { @@ -56,8 +63,8 @@ abstract class CommentTestBase extends ViewTestBase { */ protected $comment; - protected function setUp() { - parent::setUp(); + protected function setUp($import_test_views = TRUE) { + parent::setUp($import_test_views); ViewTestData::createTestViews(get_class($this), ['comment_test_views']);