function EntityTypeTest::testId
Same name and namespace in other branches
- 10 core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php \Drupal\Tests\Core\Entity\EntityTypeTest::testId()
- 9 core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php \Drupal\Tests\Core\Entity\EntityTypeTest::testId()
- 8.9.x core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php \Drupal\Tests\Core\Entity\EntityTypeTest::testId()
Tests id.
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityTypeTest.php, line 365
Class
Namespace
Drupal\Tests\Core\EntityCode
public function testId() : void {
$id = $this->randomMachineName(32);
$entity_type = $this->setUpEntityType([
'id' => $id,
]);
$this->assertEquals($id, $entity_type->id());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.