You are here

protected function AddressPlainFormatterTest::setUp in Address 8

Overrides FormatterTestBase::setUp

File

tests/src/Kernel/Formatter/AddressPlainFormatterTest.php, line 24

Class

AddressPlainFormatterTest
Tests the address_plain formatter.

Namespace

Drupal\Tests\address\Kernel\Formatter

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->createField('address', 'address_plain');
  $this->entity = EntityTest::create([]);
  $this->entity->{$this->fieldName} = [
    'country_code' => 'AD',
    'locality' => 'Canillo',
    'postal_code' => 'AD500',
    'address_line1' => 'C. Prat de la Creu, 62-64',
  ];
}