You are here

protected function ExtraFieldDisplayManagerTest::prepareDefinitions in Extra Field 8

Prepare ::getDefinitions to return the right values.

Parameters

array $definitions: The plugin definitions to return.

1 call to ExtraFieldDisplayManagerTest::prepareDefinitions()
ExtraFieldDisplayManagerTest::testFieldInfo in tests/src/Kernel/ExtraFieldDisplayManagerTest.php
@covers ::fieldInfo

File

tests/src/Kernel/ExtraFieldDisplayManagerTest.php, line 59

Class

ExtraFieldDisplayManagerTest
@coversDefaultClass \Drupal\extra_field\Plugin\ExtraFieldDisplayManager

Namespace

Drupal\Tests\extra_field\Kernel

Code

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