function FieldPluginBaseTest::testGetRenderTokensWithoutArguments
Same name in other branches
- 9 core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\field\FieldPluginBaseTest::testGetRenderTokensWithoutArguments()
- 10 core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\field\FieldPluginBaseTest::testGetRenderTokensWithoutArguments()
- 11.x core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\field\FieldPluginBaseTest::testGetRenderTokensWithoutArguments()
@covers ::getRenderTokens
File
-
core/
modules/ views/ tests/ src/ Unit/ Plugin/ field/ FieldPluginBaseTest.php, line 684
Class
- FieldPluginBaseTest
- @coversDefaultClass \Drupal\views\Plugin\views\field\FieldPluginBase @group views
Namespace
Drupal\Tests\views\Unit\Plugin\fieldCode
public function testGetRenderTokensWithoutArguments() {
$field = $this->setupTestField([
'id' => 'id',
]);
$field->last_render = 'last rendered output';
$this->display
->expects($this->any())
->method('getHandlers')
->willReturnMap([
[
'argument',
[],
],
[
'field',
[
'id' => $field,
],
],
]);
$this->assertEquals([
'{{ id }}' => 'last rendered output',
], $field->getRenderTokens([]));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.