protected function FieldableEntityDefinitionUpdateTest::assertBackupTables in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php \Drupal\KernelTests\Core\Entity\FieldableEntityDefinitionUpdateTest::assertBackupTables()
- 10 core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php \Drupal\KernelTests\Core\Entity\FieldableEntityDefinitionUpdateTest::assertBackupTables()
Asserts that the backup tables have been kept after a successful update.
1 call to FieldableEntityDefinitionUpdateTest::assertBackupTables()
- FieldableEntityDefinitionUpdateTest::testFieldableEntityTypeUpdates in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ FieldableEntityDefinitionUpdateTest.php - @covers ::updateFieldableEntityType @dataProvider providerTestFieldableEntityTypeUpdates
File
- core/
tests/ Drupal/ KernelTests/ Core/ Entity/ FieldableEntityDefinitionUpdateTest.php, line 639
Class
- FieldableEntityDefinitionUpdateTest
- Tests EntityDefinitionUpdateManager's fieldable entity update functionality.
Namespace
Drupal\KernelTests\Core\EntityCode
protected function assertBackupTables() {
$backups = \Drupal::keyValue('entity.update_backup')
->getAll();
$backup = reset($backups);
$schema = $this->database
->schema();
foreach ($backup['table_mapping']
->getTableNames() as $table_name) {
$this
->assertTrue($schema
->tableExists($table_name));
}
}