function AggregatorTestBase::setUp

Same name in this branch
  1. 8.9.x core/modules/aggregator/src/Tests/AggregatorTestBase.php \Drupal\aggregator\Tests\AggregatorTestBase::setUp()
Same name in other branches
  1. 9 core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php \Drupal\Tests\aggregator\Functional\AggregatorTestBase::setUp()

Overrides BrowserTestBase::setUp

8 calls to AggregatorTestBase::setUp()
AddFeedTest::setUp in core/modules/aggregator/tests/src/Functional/AddFeedTest.php
AggregatorDisplayConfigurableTest::setUp in core/modules/aggregator/tests/src/Functional/AggregatorDisplayConfigurableTest.php
AggregatorRenderingTest::setUp in core/modules/aggregator/tests/src/Functional/AggregatorRenderingTest.php
FeedFetcherPluginTest::setUp in core/modules/aggregator/tests/src/Functional/FeedFetcherPluginTest.php
FeedLanguageTest::setUp in core/modules/aggregator/tests/src/Functional/FeedLanguageTest.php

... See full list

8 methods override AggregatorTestBase::setUp()
AddFeedTest::setUp in core/modules/aggregator/tests/src/Functional/AddFeedTest.php
AggregatorDisplayConfigurableTest::setUp in core/modules/aggregator/tests/src/Functional/AggregatorDisplayConfigurableTest.php
AggregatorRenderingTest::setUp in core/modules/aggregator/tests/src/Functional/AggregatorRenderingTest.php
FeedFetcherPluginTest::setUp in core/modules/aggregator/tests/src/Functional/FeedFetcherPluginTest.php
FeedLanguageTest::setUp in core/modules/aggregator/tests/src/Functional/FeedLanguageTest.php

... See full list

File

core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php, line 41

Class

AggregatorTestBase
Defines a base class for testing the Aggregator module.

Namespace

Drupal\Tests\aggregator\Functional

Code

protected function setUp() {
    parent::setUp();
    // Create an Article node type.
    if ($this->profile != 'standard') {
        $this->drupalCreateContentType([
            'type' => 'article',
            'name' => 'Article',
        ]);
    }
    $this->adminUser = $this->drupalCreateUser([
        'access administration pages',
        'administer news feeds',
        'access news feeds',
        'create article content',
    ]);
    $this->drupalLogin($this->adminUser);
    $this->drupalPlaceBlock('local_tasks_block');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.