public function EntityTypeTest::testGetFormClass in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php \Drupal\Tests\Core\Entity\EntityTypeTest::testGetFormClass()
- 9 core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php \Drupal\Tests\Core\Entity\EntityTypeTest::testGetFormClass()
Tests the getFormClass() method.
File
- core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityTypeTest.php, line 227
Class
- EntityTypeTest
- @coversDefaultClass \Drupal\Core\Entity\EntityType @group Entity
Namespace
Drupal\Tests\Core\EntityCode
public function testGetFormClass() {
$controller = $this
->getTestHandlerClass();
$operation = 'default';
$entity_type = $this
->setUpEntityType([
'handlers' => [
'form' => [
$operation => $controller,
],
],
]);
$this
->assertSame($controller, $entity_type
->getFormClass($operation));
}