function EntityDisplayTest::assertDependency
Same name in other branches
- 8.9.x core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php \Drupal\Tests\field_ui\Kernel\EntityDisplayTest::assertDependency()
- 10 core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php \Drupal\Tests\field_ui\Kernel\EntityDisplayTest::assertDependency()
- 11.x core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php \Drupal\Tests\field_ui\Kernel\EntityDisplayTest::assertDependency()
Asserts that $key is a $type type dependency of $display config entity.
@internal
Parameters
string $type: The dependency type: 'config', 'content', 'module' or 'theme'.
string $key: The string to be checked.
\Drupal\Core\Entity\Display\EntityDisplayInterface $display: The entity display object to get dependencies from.
1 call to EntityDisplayTest::assertDependency()
- EntityDisplayTest::testComponentDependencies in core/
modules/ field_ui/ tests/ src/ Kernel/ EntityDisplayTest.php - Tests components dependencies additions.
File
-
core/
modules/ field_ui/ tests/ src/ Kernel/ EntityDisplayTest.php, line 657
Class
- EntityDisplayTest
- Tests the entity display configuration entities.
Namespace
Drupal\Tests\field_ui\KernelCode
protected function assertDependency(string $type, string $key, EntityDisplayInterface $display) : void {
$this->assertDependencyHelper(TRUE, $type, $key, $display);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.