function FieldRenderedEntityTest::assertConfigDependencies
Same name in other branches
- 9 core/modules/views/tests/src/Kernel/Handler/FieldRenderedEntityTest.php \Drupal\Tests\views\Kernel\Handler\FieldRenderedEntityTest::assertConfigDependencies()
- 8.9.x core/modules/views/tests/src/Kernel/Handler/FieldRenderedEntityTest.php \Drupal\Tests\views\Kernel\Handler\FieldRenderedEntityTest::assertConfigDependencies()
- 11.x core/modules/views/tests/src/Kernel/Handler/FieldRenderedEntityTest.php \Drupal\Tests\views\Kernel\Handler\FieldRenderedEntityTest::assertConfigDependencies()
Ensures that the config dependencies are calculated the right way.
@internal
Parameters
\Drupal\views\Entity\View $storage: The view storage.
1 call to FieldRenderedEntityTest::assertConfigDependencies()
- FieldRenderedEntityTest::testRenderedEntityWithoutAndWithField in core/
modules/ views/ tests/ src/ Kernel/ Handler/ FieldRenderedEntityTest.php - Tests the default rendered entity output.
File
-
core/
modules/ views/ tests/ src/ Kernel/ Handler/ FieldRenderedEntityTest.php, line 199
Class
- FieldRenderedEntityTest
- Tests the core Drupal\views\Plugin\views\field\RenderedEntity handler.
Namespace
Drupal\Tests\views\Kernel\HandlerCode
protected function assertConfigDependencies(View $storage) : void {
$storage->calculateDependencies();
$this->assertEquals([
'config' => [
'core.entity_view_mode.entity_test.foobar',
],
'module' => [
'entity_test',
],
], $storage->getDependencies());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.