protected function ExtraFieldDisplayManagerTest::prepareDisplayManager in Extra Field 8.2
Setup the SuT but allow selected methods to be overridden.
Parameters
string[] $methods: The methods to override for test purpose.
2 calls to ExtraFieldDisplayManagerTest::prepareDisplayManager()
- 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 27 
Class
- ExtraFieldDisplayManagerTest
- @coversDefaultClass \Drupal\extra_field\Plugin\ExtraFieldDisplayManager
Namespace
Drupal\Tests\extra_field\UnitCode
protected function prepareDisplayManager(array $methods) {
  $this->displayManager = $this
    ->getMockBuilder('Drupal\\extra_field\\Plugin\\ExtraFieldDisplayManager')
    ->disableOriginalConstructor()
    ->setMethods($methods)
    ->getMock();
}