You are here

public function EntityTest::providerTestTokens in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/tests/src/Unit/Plugin/area/EntityTest.php \Drupal\Tests\views\Unit\Plugin\area\EntityTest::providerTestTokens()

Data provider for testing different types of tokens.

Return value

array

File

core/modules/views/tests/src/Unit/Plugin/area/EntityTest.php, line 131
Contains \Drupal\Tests\views\Unit\Plugin\area\EntityTest.

Class

EntityTest
@coversDefaultClass \Drupal\views\Plugin\views\area\Entity @group Entity

Namespace

Drupal\Tests\views\Unit\Plugin\area

Code

public function providerTestTokens() {
  return [
    [
      '{{ raw_arguments.test1 }}',
      5,
    ],
    [
      '{{ arguments.test2 }}',
      6,
    ],
    [
      '{{ test_render_token }}',
      7,
    ],
    [
      '{{ test:global_token }}',
      8,
    ],
  ];
}