You are here

protected function ConditionalFieldTestBase::setUp in Conditional Fields 8

Same name and namespace in other branches
  1. 4.x tests/src/FunctionalJavascript/ConditionalFieldTestBase.php \Drupal\Tests\conditional_fields\FunctionalJavascript\ConditionalFieldTestBase::setUp()

Overrides BrowserTestBase::setUp

16 calls to ConditionalFieldTestBase::setUp()
ConditionalFieldCheckboxesTest::setUp in tests/src/FunctionalJavascript/ConditionalFieldCheckboxesTest.php
ConditionalFieldDateListTest::setUp in tests/src/FunctionalJavascript/ConditionalFieldDateListTest.php
ConditionalFieldDateTimeTest::setUp in tests/src/FunctionalJavascript/ConditionalFieldDateTimeTest.php
ConditionalFieldEmailTest::setUp in tests/src/FunctionalJavascript/ConditionalFieldEmailTest.php
ConditionalFieldEntityReferenceTagsTest::setUp in tests/src/FunctionalJavascript/ConditionalFieldEntityReferenceTagsTest.php

... See full list

16 methods override ConditionalFieldTestBase::setUp()
ConditionalFieldCheckboxesTest::setUp in tests/src/FunctionalJavascript/ConditionalFieldCheckboxesTest.php
ConditionalFieldDateListTest::setUp in tests/src/FunctionalJavascript/ConditionalFieldDateListTest.php
ConditionalFieldDateTimeTest::setUp in tests/src/FunctionalJavascript/ConditionalFieldDateTimeTest.php
ConditionalFieldEmailTest::setUp in tests/src/FunctionalJavascript/ConditionalFieldEmailTest.php
ConditionalFieldEntityReferenceTagsTest::setUp in tests/src/FunctionalJavascript/ConditionalFieldEntityReferenceTagsTest.php

... See full list

File

tests/src/FunctionalJavascript/ConditionalFieldTestBase.php, line 33

Class

ConditionalFieldTestBase
Base setup for ConditionalField tests.

Namespace

Drupal\Tests\conditional_fields\FunctionalJavascript

Code

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

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