public function TaxonomyViewsIntegratorTestBase::setUp in Taxonomy Views Integrator 8
Overrides BrowserTestBase::setUp
1 call to TaxonomyViewsIntegratorTestBase::setUp()
- TaxonomyViewsIntegratorTest::setUp in tests/
src/ Functional/ TaxonomyViewsIntegratorTest.php
1 method overrides TaxonomyViewsIntegratorTestBase::setUp()
- TaxonomyViewsIntegratorTest::setUp in tests/
src/ Functional/ TaxonomyViewsIntegratorTest.php
File
- tests/
src/ Functional/ TaxonomyViewsIntegratorTestBase.php, line 133
Class
- TaxonomyViewsIntegratorTestBase
- TVI PHPUnit Test base.
Namespace
Drupal\Tests\tvi\FunctionalCode
public function setUp() {
parent::setUp();
$this->vocabulary1 = $this
->createVocabulary([
'name' => 'TVI Test Vocab 1',
'vid' => 'tvi_test_vocab_1',
]);
$this->vocabulary2 = $this
->createVocabulary([
'name' => 'TVI Test Vocab 2',
'vid' => 'tvi_test_vocab_2',
]);
$this->term1 = $this
->createTerm([
'vid' => $this->vocabulary1
->id(),
]);
$this->term2 = $this
->createTerm([
'vid' => $this->vocabulary1
->id(),
]);
$this->term3 = $this
->createTerm([
'vid' => $this->vocabulary1
->id(),
]);
$this->term4 = $this
->createTerm([
'vid' => $this->vocabulary1
->id(),
]);
$this->term5 = $this
->createTerm([
'vid' => $this->vocabulary1
->id(),
'parent' => $this->term2
->id(),
]);
$this->term6 = $this
->createTerm([
'vid' => $this->vocabulary1
->id(),
'parent' => $this->term2
->id(),
]);
$this->term7 = $this
->createTerm([
'vid' => $this->vocabulary1
->id(),
'parent' => $this->term1
->id(),
]);
$this->term8 = $this
->createTerm([
'vid' => $this->vocabulary2
->id(),
]);
$this->term9 = $this
->createTerm([
'vid' => $this->vocabulary2
->id(),
]);
$this->term10 = $this
->createTerm([
'vid' => $this->vocabulary2
->id(),
]);
$this->term11 = $this
->createTerm([
'vid' => $this->vocabulary2
->id(),
'parent' => $this->term10
->id(),
]);
$this->term12 = $this
->createTerm([
'vid' => $this->vocabulary2
->id(),
'parent' => $this->term11
->id(),
]);
$this
->createTaxonomyViewsIntegratorConfiguration();
}