You are here

protected function FormatterTestBase::setUp in Address 8

Overrides KernelTestBase::setUp

3 calls to FormatterTestBase::setUp()
AddressDefaultFormatterTest::setUp in tests/src/Kernel/Formatter/AddressDefaultFormatterTest.php
AddressPlainFormatterTest::setUp in tests/src/Kernel/Formatter/AddressPlainFormatterTest.php
CountryDefaultFormatterTest::setUp in tests/src/Kernel/Formatter/CountryDefaultFormatterTest.php
3 methods override FormatterTestBase::setUp()
AddressDefaultFormatterTest::setUp in tests/src/Kernel/Formatter/AddressDefaultFormatterTest.php
AddressPlainFormatterTest::setUp in tests/src/Kernel/Formatter/AddressPlainFormatterTest.php
CountryDefaultFormatterTest::setUp in tests/src/Kernel/Formatter/CountryDefaultFormatterTest.php

File

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

Class

FormatterTestBase
Provides a base test for kernel formatter tests.

Namespace

Drupal\Tests\address\Kernel\Formatter

Code

protected function setUp() : void {
  parent::setUp();
  if (\Drupal::entityTypeManager()
    ->hasDefinition('path_alias')) {
    $this
      ->installEntitySchema('path_alias');
  }
  $this
    ->installConfig([
    'system',
  ]);
  $this
    ->installConfig([
    'field',
  ]);
  $this
    ->installConfig([
    'text',
  ]);
  $this
    ->installConfig([
    'address',
  ]);
  $this
    ->installEntitySchema('entity_test');
  $this->fieldName = mb_strtolower($this
    ->randomMachineName());
}