You are here

protected function ExtraFieldDisplayManagerTest::prepareDefinitions in Extra Field 8.2

Prepare ::getDefinitions to return the right values.

Parameters

array $definitions: The plugin definitions to return.

2 calls to ExtraFieldDisplayManagerTest::prepareDefinitions()
ExtraFieldDisplayManagerTest::testEntityView in tests/src/Unit/ExtraFieldDisplayManagerTest.php
@covers ::entityView
ExtraFieldDisplayManagerTest::testFieldInfo in tests/src/Unit/ExtraFieldDisplayManagerTest.php
@covers ::fieldInfo

File

tests/src/Unit/ExtraFieldDisplayManagerTest.php, line 40

Class

ExtraFieldDisplayManagerTest
@coversDefaultClass \Drupal\extra_field\Plugin\ExtraFieldDisplayManager

Namespace

Drupal\Tests\extra_field\Unit

Code

protected function prepareDefinitions(array $definitions) {
  $this->displayManager
    ->expects($this
    ->any())
    ->method('getDefinitions')
    ->will($this
    ->returnValue($definitions));
}