protected function EntityDisplayTest::assertDependency in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/field_ui/src/Tests/EntityDisplayTest.php \Drupal\field_ui\Tests\EntityDisplayTest::assertDependency()
Asserts that $key is a $type type dependency of $display config entity.
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.
Return value
bool TRUE if the assertion succeeded, FALSE otherwise.
1 call to EntityDisplayTest::assertDependency()
- EntityDisplayTest::testComponentDependencies in core/
modules/ field_ui/ src/ Tests/ EntityDisplayTest.php - Tests components dependencies additions.
File
- core/
modules/ field_ui/ src/ Tests/ EntityDisplayTest.php, line 609 - Contains \Drupal\field_ui\Tests\EntityDisplayTest.
Class
- EntityDisplayTest
- Tests the entity display configuration entities.
Namespace
Drupal\field_ui\TestsCode
protected function assertDependency($type, $key, EntityDisplayInterface $display) {
return $this
->assertDependencyHelper(TRUE, $type, $key, $display);
}