function CommentRssTest::setUp
Same name in other branches
- 9 core/modules/comment/tests/src/Functional/CommentRssTest.php \Drupal\Tests\comment\Functional\CommentRssTest::setUp()
- 8.9.x core/modules/comment/tests/src/Functional/CommentRssTest.php \Drupal\Tests\comment\Functional\CommentRssTest::setUp()
- 11.x 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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.