function FieldPluginBaseTest::setupDisplayWithEmptyArgumentsAndFields

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

5 calls to FieldPluginBaseTest::setupDisplayWithEmptyArgumentsAndFields()
FieldPluginBaseTest::testRenderAsExternalLinkWithPathAndTokens in core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php
Tests rendering of a link with a path and options.
FieldPluginBaseTest::testRenderAsLinkWithPathAndOptions in core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php
Tests rendering of a link with a path and options.
FieldPluginBaseTest::testRenderAsLinkWithPathAndTokens in core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php
Tests 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.
FieldPluginBaseTest::testRenderNoResult in core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php
Tests the "No results text" rendering.

File

core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php, line 200

Class

FieldPluginBaseTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21views%21src%21Plugin%21views%21field%21FieldPluginBase.php/class/FieldPluginBase/11.x" title="Base class for views fields." class="local">\Drupal\views\Plugin\views\field\FieldPluginBase</a> @group views

Namespace

Drupal\Tests\views\Unit\Plugin\field

Code

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

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