Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / system / tests / src / Functional / Update / EntityUpdateInitialTest.php
1 <?php
2
3 namespace Drupal\Tests\system\Functional\Update;
4
5 use Drupal\FunctionalTests\Update\UpdatePathTestBase;
6
7 /**
8  * Tests handling of existing initial keys during updates.
9  *
10  * @see https://www.drupal.org/project/drupal/issues/2925550
11  *
12  * @group Update
13  */
14 class EntityUpdateInitialTest extends UpdatePathTestBase {
15
16   /**
17    * {@inheritdoc}
18    */
19   protected function setDatabaseDumpFiles() {
20     $this->databaseDumpFiles = [
21       __DIR__ . '/../../../fixtures/update/drupal-8.0.0-rc1-filled.standard.entity_test_update.php.gz',
22       __DIR__ . '/../../../fixtures/update/drupal-8.entity-test-initial.php',
23     ];
24   }
25
26   /**
27    * Tests that a pre-existing initial key in the field schema is not a change.
28    */
29   public function testInitialIsIgnored() {
30     $this->runUpdates();
31   }
32
33 }