protected function EntityTest::setupEntityManager in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/tests/src/Unit/Plugin/area/EntityTest.php \Drupal\Tests\views\Unit\Plugin\area\EntityTest::setupEntityManager()
Ensures that the entity manager returns an entity storage.
6 calls to EntityTest::setupEntityManager()
- EntityTest::testCalculateDependenciesWithEntityId in core/
modules/ views/ tests/ src/ Unit/ Plugin/ area/ EntityTest.php - @covers ::calculateDependencies
- EntityTest::testCalculateDependenciesWithPlaceholder in core/
modules/ views/ tests/ src/ Unit/ Plugin/ area/ EntityTest.php - @covers ::calculateDependencies
- EntityTest::testCalculateDependenciesWithUuid in core/
modules/ views/ tests/ src/ Unit/ Plugin/ area/ EntityTest.php - @covers ::calculateDependencies
- EntityTest::testRenderWithId in core/
modules/ views/ tests/ src/ Unit/ Plugin/ area/ EntityTest.php - @covers ::render @covers ::defineOptions @covers ::init
- EntityTest::testRenderWithIdAndToken in core/
modules/ views/ tests/ src/ Unit/ Plugin/ area/ EntityTest.php - @covers ::render @covers ::defineOptions @covers ::init
File
- core/
modules/ views/ tests/ src/ Unit/ Plugin/ area/ EntityTest.php, line 115 - Contains \Drupal\Tests\views\Unit\Plugin\area\EntityTest.
Class
- EntityTest
- @coversDefaultClass \Drupal\views\Plugin\views\area\Entity @group Entity
Namespace
Drupal\Tests\views\Unit\Plugin\areaCode
protected function setupEntityManager() {
$this->entityManager
->expects($this
->any())
->method('getStorage')
->with('entity_test')
->willReturn($this->entityStorage);
$this->entityManager
->expects($this
->any())
->method('getViewBuilder')
->with('entity_test')
->willReturn($this->entityViewBuilder);
}