protected function RenderedEntityTest::assertConfigDependencies in Entity API 8.0
Ensures that the config dependencies are calculated the right way.
Parameters
\Drupal\views\Entity\View $storage: The view storage.
2 calls to RenderedEntityTest::assertConfigDependencies()
- RenderedEntityTest::testRenderedEntityWithField in src/
Tests/ Plugin/ views/ field/ RenderedEntityTest.php - Tests the rendered entity output with the body field configured to show.
- RenderedEntityTest::testRenderedEntityWithoutField in src/
Tests/ Plugin/ views/ field/ RenderedEntityTest.php - Tests the default rendered entity output.
File
- src/
Tests/ Plugin/ views/ field/ RenderedEntityTest.php, line 213 - Contains \Drupal\entity\Tests\Plugin\views\field\RenderedEntityTest.
Class
- RenderedEntityTest
- Tests the Drupal\entity\Plugin\views\field\RenderedEntity handler.
Namespace
Drupal\entity\Tests\Plugin\views\fieldCode
protected function assertConfigDependencies(View $storage) {
$storage
->calculateDependencies();
$this
->assertEqual([
'config' => [
'core.entity_view_mode.entity_test.foobar',
],
'module' => [
'entity_test',
],
], $storage
->getDependencies());
}