protected function CommentRssTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 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\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Setup the rss view display.
EntityViewDisplay::create([
'status' => TRUE,
'targetEntityType' => 'node',
'bundle' => 'article',
'mode' => 'rss',
'content' => [
'links' => [
'weight' => 100,
],
],
])
->save();
}