You are here

protected function CommentRssTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/comment/tests/src/Functional/CommentRssTest.php \Drupal\Tests\comment\Functional\CommentRssTest::setUp()

Overrides CommentTestBase::setUp

File

core/modules/comment/tests/src/Functional/CommentRssTest.php, line 34

Class

CommentRssTest
Tests comments as part of an RSS feed.

Namespace

Drupal\Tests\comment\Functional

Code

protected function setUp() {
  parent::setUp();

  // Setup the rss view display.
  EntityViewDisplay::create([
    'status' => TRUE,
    'targetEntityType' => 'node',
    'bundle' => 'article',
    'mode' => 'rss',
    'content' => [
      'links' => [
        'weight' => 100,
      ],
    ],
  ])
    ->save();
}