You are here

protected function FieldDefaultTokenBasicTest::setUp in Field default token 8

Overrides FieldDefaultTokenKernelTestBase::setUp

File

tests/src/Kernel/FieldDefaultTokenBasicTest.php, line 34

Class

FieldDefaultTokenBasicTest
Tests that tokens in field default values get replaced correctly.

Namespace

Drupal\Tests\field_default_token\Kernel

Code

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

  /** @var \Drupal\Core\Config\ConfigFactoryInterface $config_factory */
  $config_factory = $this->container
    ->get('config.factory');
  $this->siteName = $config_factory
    ->get('system.site')
    ->get('name');
}