protected function ViewsHandlerManagerTest::setupMockedFactory in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/tests/src/Unit/ViewsHandlerManagerTest.php \Drupal\Tests\views\Unit\ViewsHandlerManagerTest::setupMockedFactory()
 
Setups of the plugin factory.
3 calls to ViewsHandlerManagerTest::setupMockedFactory()
- ViewsHandlerManagerTest::testGetHandlerBaseInformationPropagation in core/
modules/ views/ tests/ src/ Unit/ ViewsHandlerManagerTest.php  - Tests getHandler() and its base information propagation.
 - ViewsHandlerManagerTest::testGetHandlerNoOverride in core/
modules/ views/ tests/ src/ Unit/ ViewsHandlerManagerTest.php  - Tests getHandler() without an override.
 - ViewsHandlerManagerTest::testGetHandlerOverride in core/
modules/ views/ tests/ src/ Unit/ ViewsHandlerManagerTest.php  - Tests getHandler() with an override.
 
File
- core/
modules/ views/ tests/ src/ Unit/ ViewsHandlerManagerTest.php, line 61  - Contains \Drupal\Tests\views\Unit\ViewsHandlerManagerTest.
 
Class
- ViewsHandlerManagerTest
 - Tests the ViewsHandlerManager class.
 
Namespace
Drupal\Tests\views\UnitCode
protected function setupMockedFactory() {
  $this->factory = $this
    ->getMock('Drupal\\Component\\Plugin\\Factory\\FactoryInterface');
  $reflection = new \ReflectionClass($this->handlerManager);
  $property = $reflection
    ->getProperty('factory');
  $property
    ->setAccessible(TRUE);
  $property
    ->setValue($this->handlerManager, $this->factory);
}