function FieldPluginBaseTest::testGetRenderTokensWithoutFieldsAndArguments

Same name in other branches
  1. 9 core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\field\FieldPluginBaseTest::testGetRenderTokensWithoutFieldsAndArguments()
  2. 8.9.x core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\field\FieldPluginBaseTest::testGetRenderTokensWithoutFieldsAndArguments()
  3. 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 655

Class

FieldPluginBaseTest
@coversDefaultClass \Drupal\views\Plugin\views\field\FieldPluginBase @group views

Namespace

Drupal\Tests\views\Unit\Plugin\field

Code

public function testGetRenderTokensWithoutFieldsAndArguments() : void {
    $field = $this->setupTestField();
    $this->display
        ->expects($this->any())
        ->method('getHandlers')
        ->willReturnMap([
        [
            'argument',
            [],
        ],
        [
            'field',
            [],
        ],
    ]);
    $this->assertEquals([], $field->getRenderTokens([]));
}

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