function AggregatorTestBase::setUp

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.