You are here

protected function TaxonomyTestBase::setUp in Drupal 8

Same name in this branch
  1. 8 core/modules/taxonomy/src/Tests/TaxonomyTestBase.php \Drupal\taxonomy\Tests\TaxonomyTestBase::setUp()
  2. 8 core/modules/taxonomy/tests/src/Functional/TaxonomyTestBase.php \Drupal\Tests\taxonomy\Functional\TaxonomyTestBase::setUp()
  3. 8 core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTestBase.php \Drupal\Tests\taxonomy\Functional\Views\TaxonomyTestBase::setUp()
  4. 8 core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyTestBase.php \Drupal\Tests\taxonomy\Kernel\Views\TaxonomyTestBase::setUp()
Same name and namespace in other branches
  1. 9 core/modules/taxonomy/tests/src/Functional/TaxonomyTestBase.php \Drupal\Tests\taxonomy\Functional\TaxonomyTestBase::setUp()
  2. 10 core/modules/taxonomy/tests/src/Functional/TaxonomyTestBase.php \Drupal\Tests\taxonomy\Functional\TaxonomyTestBase::setUp()

Overrides BrowserTestBase::setUp

20 calls to TaxonomyTestBase::setUp()
EarlyDateTest::setUp in core/modules/taxonomy/tests/src/Functional/EarlyDateTest.php
EntityReferenceFieldAttributesTest::setUp in core/modules/rdf/tests/src/Functional/EntityReferenceFieldAttributesTest.php
LoadMultipleTest::setUp in core/modules/taxonomy/tests/src/Functional/LoadMultipleTest.php
RssTest::setUp in core/modules/taxonomy/tests/src/Functional/RssTest.php
TaxonomyAttributesTest::setUp in core/modules/rdf/tests/src/Functional/TaxonomyAttributesTest.php

... See full list

20 methods override TaxonomyTestBase::setUp()
EarlyDateTest::setUp in core/modules/taxonomy/tests/src/Functional/EarlyDateTest.php
EntityReferenceFieldAttributesTest::setUp in core/modules/rdf/tests/src/Functional/EntityReferenceFieldAttributesTest.php
LoadMultipleTest::setUp in core/modules/taxonomy/tests/src/Functional/LoadMultipleTest.php
RssTest::setUp in core/modules/taxonomy/tests/src/Functional/RssTest.php
TaxonomyAttributesTest::setUp in core/modules/rdf/tests/src/Functional/TaxonomyAttributesTest.php

... See full list

File

core/modules/taxonomy/tests/src/Functional/TaxonomyTestBase.php, line 27

Class

TaxonomyTestBase
Provides common helper methods for Taxonomy module tests.

Namespace

Drupal\Tests\taxonomy\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalPlaceBlock('system_breadcrumb_block');

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