protected function FieldRenderedEntityTest::assertConfigDependencies in Drupal 9
Same name and namespace in other branches
- 8 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.
Parameters
\Drupal\views\Entity\View $storage:
2 calls to FieldRenderedEntityTest::assertConfigDependencies()
- FieldRenderedEntityTest::testRenderedEntityWithField in core/
modules/ views/ tests/ src/ Kernel/ Handler/ FieldRenderedEntityTest.php - Tests the rendered entity output with the test field configured to show.
- FieldRenderedEntityTest::testRenderedEntityWithoutField 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 171
Class
- FieldRenderedEntityTest
- Tests the core Drupal\views\Plugin\views\field\RenderedEntity handler.
Namespace
Drupal\Tests\views\Kernel\HandlerCode
protected function assertConfigDependencies(View $storage) {
$storage
->calculateDependencies();
$this
->assertEquals([
'config' => [
'core.entity_view_mode.entity_test.foobar',
],
'module' => [
'entity_test',
],
], $storage
->getDependencies());
}