You are here

public function TaxonomyViewsIntegratorTest::setUp in Taxonomy Views Integrator 8

Overrides TaxonomyViewsIntegratorTestBase::setUp

File

tests/src/Functional/TaxonomyViewsIntegratorTest.php, line 15

Class

TaxonomyViewsIntegratorTest
Tests TaxonomyViewsIntegrator and various term configurations.

Namespace

Drupal\Tests\tvi\Functional

Code

public function setUp() {
  parent::setUp();
  $permissions = [
    'access content',
    'administer site configuration',
    'administer views',
    'administer nodes',
    'administer taxonomy',
    'access administration pages',
    'define view for vocabulary ' . $this->vocabulary1
      ->id(),
    'define view for terms in ' . $this->vocabulary1
      ->id(),
    'define view for vocabulary ' . $this->vocabulary2
      ->id(),
    'define view for terms in ' . $this->vocabulary2
      ->id(),
  ];
  $admin_user = $this
    ->drupalCreateUser($permissions);
  $this
    ->drupalLogin($admin_user);
}