You are here

public function PluginBaseTest::testViewsTokenReplaceWithTwigTokens in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Tests/Plugin/PluginBaseTest.php \Drupal\views\Tests\Plugin\PluginBaseTest::testViewsTokenReplaceWithTwigTokens()

Tests viewsTokenReplace without any twig tokens.

File

core/modules/views/src/Tests/Plugin/PluginBaseTest.php, line 63
Contains \Drupal\views\Tests\Plugin\PluginBaseTest.

Class

PluginBaseTest
Tests the PluginBase class.

Namespace

Drupal\views\Tests\Plugin

Code

public function testViewsTokenReplaceWithTwigTokens() {
  $text = 'Just some text';
  $tokens = [];
  $result = $this->testPluginBase
    ->viewsTokenReplace($text, $tokens);
  $this
    ->assertIdentical($result, 'Just some text');
}