You are here

protected function ReplicationFilterTest::setUp in Replication 8

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/ReplicationFilterTest.php \Drupal\Tests\replication\Functional\ReplicationFilterTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/ReplicationFilterTest.php, line 36

Class

ReplicationFilterTest
Tests replication filters.

Namespace

Drupal\Tests\replication\Functional

Code

protected function setUp() {
  parent::setUp();

  // Create Basic page and Article node types.
  if ($this->profile != 'standard') {
    $this
      ->drupalCreateContentType([
      'type' => 'article',
      'name' => 'Article',
    ]);
  }
  $this->user = $this
    ->drupalCreateUser([
    'administer workspaces',
  ]);
  $this
    ->drupalLogin($this->user);
}