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\FormatterCode
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',
];
}