You are here

public function TokensTest::testMultipleTokens in Site Settings and Labels 8

Test multiple tokens.

File

tests/src/Functional/TokensTest.php, line 29

Class

TokensTest
Test tokens.

Namespace

Drupal\Tests\site_settings\Functional

Code

public function testMultipleTokens() {
  $value = \Drupal::service('token')
    ->replace('[site_settings:other--test_multiple_entries--1--value]');
  $this
    ->assertSame('Test multiple entries content 2', $value);
}