You are here

public function EntityTypeTest::testGet in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php \Drupal\Tests\Core\Entity\EntityTypeTest::testGet()
  2. 10 core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php \Drupal\Tests\Core\Entity\EntityTypeTest::testGet()

@covers ::get

@dataProvider providerTestGet

File

core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php, line 39

Class

EntityTypeTest
@coversDefaultClass \Drupal\Core\Entity\EntityType @group Entity

Namespace

Drupal\Tests\Core\Entity

Code

public function testGet(array $definition, $key, $expected) {
  $entity_type = $this
    ->setUpEntityType($definition);
  $this
    ->assertSame($expected, $entity_type
    ->get($key));
}