function AggregatorTestBase::setUp

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

Overrides WebTestBase::setUp

File

core/modules/aggregator/src/Tests/AggregatorTestBase.php, line 48

Class

AggregatorTestBase
Defines a base class for testing the Aggregator module.

Namespace

Drupal\aggregator\Tests

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.