public function FieldPluginBaseTest::testGetRenderTokensWithoutFieldsAndArguments in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\field\FieldPluginBaseTest::testGetRenderTokensWithoutFieldsAndArguments()
- 10 core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\field\FieldPluginBaseTest::testGetRenderTokensWithoutFieldsAndArguments()
@covers ::getRenderTokens
File
- core/
modules/ views/ tests/ src/ Unit/ Plugin/ field/ FieldPluginBaseTest.php, line 668 - Contains \Drupal\Tests\views\Unit\Plugin\field\FieldPluginBaseTest.
Class
- FieldPluginBaseTest
- @coversDefaultClass \Drupal\views\Plugin\views\field\FieldPluginBase @group views
Namespace
Drupal\Tests\views\Unit\Plugin\fieldCode
public function testGetRenderTokensWithoutFieldsAndArguments() {
$field = $this
->setupTestField();
$this->display
->expects($this
->any())
->method('getHandlers')
->willReturnMap([
[
'argument',
[],
],
[
'field',
[],
],
]);
$this
->assertEquals([], $field
->getRenderTokens([]));
}