public function AreaEntityTest::doTestCalculateDependencies in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Tests/Handler/AreaEntityTest.php \Drupal\views\Tests\Handler\AreaEntityTest::doTestCalculateDependencies()
Tests the calculation of the rendered dependencies.
1 call to AreaEntityTest::doTestCalculateDependencies()
- AreaEntityTest::testEntityArea in core/
modules/ views/ src/ Tests/ Handler/ AreaEntityTest.php - Tests the area handler.
File
- core/
modules/ views/ src/ Tests/ Handler/ AreaEntityTest.php, line 191 - Contains \Drupal\views\Tests\Handler\AreaEntityTest.
Class
- AreaEntityTest
- Tests the generic entity area handler.
Namespace
Drupal\views\Tests\HandlerCode
public function doTestCalculateDependencies() {
$view = View::load('test_entity_area');
$dependencies = $view
->calculateDependencies()
->getDependencies();
// Ensure that both config and content entity dependencies are calculated.
$this
->assertEqual([
'config' => [
'block.block.test_block',
],
'content' => [
'entity_test:entity_test:aa0c61cb-b7bb-4795-972a-493dabcf529c',
],
], $dependencies);
}