You are here

public function EntityFormTest::testFormCRUD in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Functional/Entity/EntityFormTest.php \Drupal\Tests\system\Functional\Entity\EntityFormTest::testFormCRUD()
  2. 9 core/modules/system/tests/src/Functional/Entity/EntityFormTest.php \Drupal\Tests\system\Functional\Entity\EntityFormTest::testFormCRUD()

Tests basic form CRUD functionality.

File

core/modules/system/tests/src/Functional/Entity/EntityFormTest.php, line 46

Class

EntityFormTest
Tests the entity form.

Namespace

Drupal\Tests\system\Functional\Entity

Code

public function testFormCRUD() {

  // All entity variations have to have the same results.
  foreach (entity_test_entity_types() as $entity_type) {
    $this
      ->doTestFormCRUD($entity_type);
  }
}