You are here

protected function FormatterTestBase::setUp in Range 8

Overrides KernelTestBase::setUp

5 calls to FormatterTestBase::setUp()
DecimalFormatterTest::setUp in tests/src/Kernel/Formatter/DecimalFormatterTest.php
DecimalSprintfFormatterTest::setUp in tests/src/Kernel/Formatter/DecimalSprintfFormatterTest.php
IntegerFormatterTest::setUp in tests/src/Kernel/Formatter/IntegerFormatterTest.php
IntegerSprintfFormatterTest::setUp in tests/src/Kernel/Formatter/IntegerSprintfFormatterTest.php
UnformattedlFormatterTest::setUp in tests/src/Kernel/Formatter/UnformattedlFormatterTest.php
5 methods override FormatterTestBase::setUp()
DecimalFormatterTest::setUp in tests/src/Kernel/Formatter/DecimalFormatterTest.php
DecimalSprintfFormatterTest::setUp in tests/src/Kernel/Formatter/DecimalSprintfFormatterTest.php
IntegerFormatterTest::setUp in tests/src/Kernel/Formatter/IntegerFormatterTest.php
IntegerSprintfFormatterTest::setUp in tests/src/Kernel/Formatter/IntegerSprintfFormatterTest.php
UnformattedlFormatterTest::setUp in tests/src/Kernel/Formatter/UnformattedlFormatterTest.php

File

tests/src/Kernel/Formatter/FormatterTestBase.php, line 66

Class

FormatterTestBase
Base class for range functional integration tests.

Namespace

Drupal\Tests\range\Kernel\Formatter

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->installConfig([
    'system',
  ]);
  $this
    ->installConfig([
    'field',
  ]);
  $this
    ->installConfig([
    'text',
  ]);
  $this
    ->installConfig([
    'range',
  ]);
  $this
    ->installEntitySchema('entity_test');
  $this->fieldName = $this
    ->getFieldName($this->fieldType);
  $this
    ->createField($this->fieldType);
  $this
    ->createViewDisplay();
  $this->entity = EntityTest::create([]);
}