protected function ExtraFieldDisplayManagerTest::prepareEntityBundleKey in Extra Field 8.2
Prepare ::allEntityBundleKey to return the right values.
Parameters
string $key: The key to return.
File
- tests/
src/ Unit/ ExtraFieldDisplayManagerTest.php, line 66
Class
- ExtraFieldDisplayManagerTest
- @coversDefaultClass \Drupal\extra_field\Plugin\ExtraFieldDisplayManager
Namespace
Drupal\Tests\extra_field\UnitCode
protected function prepareEntityBundleKey($key) {
$this->displayManager
->expects($this
->any())
->method('entityBundleKey')
->will($this
->returnValue($key));
}