You are here

protected function EntityDisplayTest::assertNoDependency in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php \Drupal\Tests\field_ui\Kernel\EntityDisplayTest::assertNoDependency()

Asserts that $key is not 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::assertNoDependency()
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 672

Class

EntityDisplayTest
Tests the entity display configuration entities.

Namespace

Drupal\Tests\field_ui\Kernel

Code

protected function assertNoDependency($type, $key, EntityDisplayInterface $display) {
  return $this
    ->assertDependencyHelper(FALSE, $type, $key, $display);
}