You are here

protected function FieldPluginBaseTest::setupDisplayWithEmptyArgumentsAndFields in Zircon Profile 8

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

Sets up a display with empty arguments and fields.

3 calls to FieldPluginBaseTest::setupDisplayWithEmptyArgumentsAndFields()
FieldPluginBaseTest::testRenderAsLinkWithPathAndOptions in core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php
Test rendering of a link with a path and options.
FieldPluginBaseTest::testRenderAsLinkWithPathAndTokens in core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php
Test rendering of a link with a path and options.
FieldPluginBaseTest::testRenderAsLinkWithUrlAndOptions in core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php
Tests link rendering with a URL and options.

File

core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php, line 200
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\field

Code

protected function setupDisplayWithEmptyArgumentsAndFields() {
  $this->display
    ->expects($this
    ->any())
    ->method('getHandlers')
    ->willReturnMap([
    [
      'argument',
      [],
    ],
    [
      'field',
      [],
    ],
  ]);
}