public function PluginBaseTest::testViewsTokenReplaceWithTwigTokens in Drupal 8
Same name and namespace in other branches
- 9 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 - Contains \Drupal\views\Tests\Plugin\PluginBaseTest.
Class
- PluginBaseTest
- Tests the PluginBase class.
Namespace
Drupal\Tests\views\Kernel\PluginCode
public function testViewsTokenReplaceWithTwigTokens() {
$text = 'Just some text';
$tokens = [];
$result = $this->testPluginBase
->viewsTokenReplace($text, $tokens);
$this
->assertIdentical($result, 'Just some text');
}