You are here

protected function ExtraFieldDisplayManagerTest::prepareEntityBundles in Extra Field 8

Prepare ::allEntityBundles to return the right values.

Parameters

array $bundlesMap: Array of bundle names.

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

File

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

Class

ExtraFieldDisplayManagerTest
@coversDefaultClass \Drupal\extra_field\Plugin\ExtraFieldDisplayManager

Namespace

Drupal\Tests\extra_field\Kernel

Code

protected function prepareEntityBundles(array $bundlesMap) {
  $this->displayManager
    ->expects($this
    ->any())
    ->method('allEntityBundles')
    ->will($this
    ->returnValueMap($bundlesMap));
}