public function EntityTypeCRUDTest::testIfEntityUpdateDoesNotResultInMismatchedEntityDefinitions in Entity Construction Kit (ECK) 8
Test if updating an entity type does not result in mismatched definitions.
File
- tests/
src/ Functional/ EntityTypeCRUDTest.php, line 26
Class
- EntityTypeCRUDTest
- Tests if eck entity types are correctly created and updated.
Namespace
Drupal\Tests\eck\FunctionalCode
public function testIfEntityUpdateDoesNotResultInMismatchedEntityDefinitions() {
$this
->createEntityType([], 'TestType');
$routeArguments = [
'eck_entity_type' => 'testtype',
];
$route = 'entity.eck_entity_type.edit_form';
$edit = [
'created' => FALSE,
];
$this
->drupalGet(Url::fromRoute($route, $routeArguments));
$this
->submitForm($edit, 'Update TestType');
$this
->assertNoMismatchedFieldDefinitions();
}