SerializationSettingsDeletionUpdateTest.php in Drupal 9
File
core/modules/serialization/tests/src/Functional/Update/SerializationSettingsDeletionUpdateTest.php
View source
<?php
namespace Drupal\Tests\serialization\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
class SerializationSettingsDeletionUpdateTest extends UpdatePathTestBase {
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.8.0.filled.standard.php.gz',
];
}
public function testUpdate() {
$serialization_settings = $this
->config('serialization.settings');
$this
->assertFalse($serialization_settings
->isNew());
$this
->assertEquals(FALSE, $serialization_settings
->get('bc_primitives_as_strings'));
$this
->assertEquals(TRUE, $serialization_settings
->get('bc_timestamp_normalizer_unix'));
$this
->runUpdates();
$serialization_settings = \Drupal::configFactory()
->get('serialization.settings');
$this
->assertTrue($serialization_settings
->isNew());
}
}