You are here

public function TokenFieldUiTest::testFieldDescriptionTokens in Token 8

File

tests/src/Functional/TokenFieldUiTest.php, line 115

Class

TokenFieldUiTest
Tests field ui.

Namespace

Drupal\Tests\token\Functional

Code

public function testFieldDescriptionTokens() {
  $edit = [
    'description' => 'The site is called [site:name].',
  ];
  $this
    ->drupalPostForm('admin/structure/types/manage/article/fields/node.article.field_body', $edit, 'Save settings');
  $this
    ->drupalGet('node/add/article');
  $this
    ->assertText('The site is called Drupal.');
}