function FieldableEntityDefinitionUpdateTest::assertNonRevisionableAndNonTranslatable
Same name in other branches
- 8.9.x core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php \Drupal\KernelTests\Core\Entity\FieldableEntityDefinitionUpdateTest::assertNonRevisionableAndNonTranslatable()
- 10 core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php \Drupal\KernelTests\Core\Entity\FieldableEntityDefinitionUpdateTest::assertNonRevisionableAndNonTranslatable()
- 11.x core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php \Drupal\KernelTests\Core\Entity\FieldableEntityDefinitionUpdateTest::assertNonRevisionableAndNonTranslatable()
Asserts that an entity type is neither revisionable nor translatable.
@internal
1 call to FieldableEntityDefinitionUpdateTest::assertNonRevisionableAndNonTranslatable()
- FieldableEntityDefinitionUpdateTest::assertEntityTypeSchema in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ FieldableEntityDefinitionUpdateTest.php - Asserts revisionable and/or translatable characteristics of an entity type.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Entity/ FieldableEntityDefinitionUpdateTest.php, line 615
Class
- FieldableEntityDefinitionUpdateTest
- Tests EntityDefinitionUpdateManager's fieldable entity update functionality.
Namespace
Drupal\KernelTests\Core\EntityCode
protected function assertNonRevisionableAndNonTranslatable() : void {
/** @var \Drupal\Core\Entity\ContentEntityTypeInterface $entity_type */
$entity_type = $this->entityDefinitionUpdateManager
->getEntityType($this->entityTypeId);
$this->assertFalse($entity_type->isRevisionable());
$this->assertFalse($entity_type->isTranslatable());
$database_schema = $this->database
->schema();
$this->assertTrue($database_schema->tableExists($entity_type->getBaseTable()));
$this->assertFalse($database_schema->tableExists($entity_type->getDataTable()));
$this->assertFalse($database_schema->tableExists($entity_type->getRevisionTable()));
$this->assertFalse($database_schema->tableExists($entity_type->getRevisionDataTable()));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.