function EntityOperationsUnitTest::setUpMockEntityTypeManager
Reinitializes the entity type manager as a mock object.
2 calls to EntityOperationsUnitTest::setUpMockEntityTypeManager()
- EntityOperationsUnitTest::testRenderWithDestination in core/
modules/ views/ tests/ src/ Unit/ Plugin/ views/ field/ EntityOperationsUnitTest.php - Tests render with destination.
- EntityOperationsUnitTest::testRenderWithoutDestination in core/
modules/ views/ tests/ src/ Unit/ Plugin/ views/ field/ EntityOperationsUnitTest.php - Tests render without destination.
File
-
core/
modules/ views/ tests/ src/ Unit/ Plugin/ views/ field/ EntityOperationsUnitTest.php, line 92
Class
Namespace
Drupal\Tests\views\Unit\Plugin\views\fieldCode
protected function setUpMockEntityTypeManager() : void {
$this->entityTypeManager = $this->createMock(EntityTypeManagerInterface::class);
$reflection = new \ReflectionProperty($this->plugin, 'entityTypeManager');
$reflection->setValue($this->plugin, $this->entityTypeManager);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.