You are here

protected function FieldRenderedEntityTest::assertConfigDependencies in Drupal 8

Same name and namespace in other branches
  1. 9 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 158

Class

FieldRenderedEntityTest
Tests the core Drupal\views\Plugin\views\field\RenderedEntity handler.

Namespace

Drupal\Tests\views\Kernel\Handler

Code

protected function assertConfigDependencies(View $storage) {
  $storage
    ->calculateDependencies();
  $this
    ->assertEqual([
    'config' => [
      'core.entity_view_mode.entity_test.foobar',
    ],
    'module' => [
      'entity_test',
    ],
  ], $storage
    ->getDependencies());
}