public function EntityTypeTest::testGet in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 42 - Contains \Drupal\Tests\Core\Entity\EntityTypeTest.
Class
- EntityTypeTest
- @coversDefaultClass \Drupal\Core\Entity\EntityType @group Entity
Namespace
Drupal\Tests\Core\EntityCode
public function testGet(array $defintion, $key, $expected) {
$entity_type = $this
->setUpEntityType($defintion);
$this
->assertSame($expected, $entity_type
->get($key));
}