function PluginBaseTest::testViewsTokenReplaceWithTwigTokens

Same name in other branches
  1. 9 core/modules/views/tests/src/Kernel/Plugin/PluginBaseTest.php \Drupal\Tests\views\Kernel\Plugin\PluginBaseTest::testViewsTokenReplaceWithTwigTokens()
  2. 10 core/modules/views/tests/src/Kernel/Plugin/PluginBaseTest.php \Drupal\Tests\views\Kernel\Plugin\PluginBaseTest::testViewsTokenReplaceWithTwigTokens()
  3. 11.x core/modules/views/tests/src/Kernel/Plugin/PluginBaseTest.php \Drupal\Tests\views\Kernel\Plugin\PluginBaseTest::testViewsTokenReplaceWithTwigTokens()

Tests viewsTokenReplace without any twig tokens.

File

core/modules/views/tests/src/Kernel/Plugin/PluginBaseTest.php, line 73

Class

PluginBaseTest
Tests the PluginBase class.

Namespace

Drupal\Tests\views\Kernel\Plugin

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.