diff --git a/core/modules/layout_builder/tests/src/Functional/Update/Translatability/LayoutFieldTranslateUpdateConfig.php b/core/modules/layout_builder/tests/src/Functional/Update/Translatability/LayoutFieldTranslateUpdateConfig.php deleted file mode 100644 index 59e748a9ba..0000000000 --- a/core/modules/layout_builder/tests/src/Functional/Update/Translatability/LayoutFieldTranslateUpdateConfig.php +++ /dev/null @@ -1,44 +0,0 @@ - [ - 'has_translation' => TRUE, - 'has_layout' => TRUE, - 'nid' => 1, - 'vid' => 2, - ], - 'page' => [ - 'has_translation' => FALSE, - 'has_layout' => FALSE, - 'nid' => 4, - 'vid' => 5, - ], - ]; - - /** - * {@inheritdoc} - */ - protected $expectedBundleUpdates = [ - 'article' => FALSE, - 'page' => TRUE, - ]; - - /** - * {@inheritdoc} - */ - protected $expectedFieldStorageUpdate = FALSE; - -} diff --git a/core/modules/layout_builder/tests/src/Functional/Update/Translatability/LayoutFieldTranslateUpdateConfigAndStorage.php b/core/modules/layout_builder/tests/src/Functional/Update/Translatability/LayoutFieldTranslateUpdateConfigAndStorage.php deleted file mode 100644 index 63e9dfbd20..0000000000 --- a/core/modules/layout_builder/tests/src/Functional/Update/Translatability/LayoutFieldTranslateUpdateConfigAndStorage.php +++ /dev/null @@ -1,44 +0,0 @@ - [ - 'has_translation' => TRUE, - 'has_layout' => FALSE, - 'nid' => 1, - 'vid' => 2, - ], - 'page' => [ - 'has_translation' => FALSE, - 'has_layout' => TRUE, - 'nid' => 4, - 'vid' => 5, - ], - ]; - - /** - * {@inheritdoc} - */ - protected $expectedBundleUpdates = [ - 'article' => TRUE, - 'page' => TRUE, - ]; - - /** - * {@inheritdoc} - */ - protected $expectedFieldStorageUpdate = TRUE; - -} diff --git a/core/modules/layout_builder/tests/src/Functional/Update/Translatability/MakeLayoutUntranslatableUpdatePathTestBase.php b/core/modules/layout_builder/tests/src/Functional/Update/Translatability/MakeLayoutUntranslatableUpdatePathTestBase.php deleted file mode 100644 index 7bb91f7c35..0000000000 --- a/core/modules/layout_builder/tests/src/Functional/Update/Translatability/MakeLayoutUntranslatableUpdatePathTestBase.php +++ /dev/null @@ -1,84 +0,0 @@ -databaseDumpFiles = [ - __DIR__ . '/../../../../../../system/tests/fixtures/update/drupal-8.filled.standard.php.gz', - __DIR__ . '/../../../../fixtures/update/layout-builder.php', - __DIR__ . '/../../../../fixtures/update/layout-builder-field-schema.php', - __DIR__ . '/../../../../fixtures/update/layout-builder-translation.php', - ]; - } - - /** - * Tests the upgrade path for translatable layouts. - * - * @see layout_builder_post_update_make_layout_untranslatable() - */ - public function testDisableTranslationOnLayouts() { - $this->runUpdates(); - foreach ($this->expectedBundleUpdates as $bundle => $field_update_expected) { - $this->assertEquals( - $field_update_expected, - !FieldConfig::loadByName('node', $bundle, OverridesSectionStorage::FIELD_NAME)->isTranslatable(), - $field_update_expected ? "Field on $bundle set to be non-translatable." : "Field on $bundle not set to non-translatable." - ); - } - - $this->assertEquals( - $this->expectedFieldStorageUpdate, - !FieldStorageConfig::loadByName('node', OverridesSectionStorage::FIELD_NAME)->isTranslatable() - ); - } - -} diff --git a/core/modules/user/tests/src/Functional/Update/UserUpdateEmailToken.php b/core/modules/user/tests/src/Functional/Update/UserUpdateEmailToken.php deleted file mode 100644 index 4e4b9f6281..0000000000 --- a/core/modules/user/tests/src/Functional/Update/UserUpdateEmailToken.php +++ /dev/null @@ -1,36 +0,0 @@ -databaseDumpFiles = [ - __DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz', - __DIR__ . '/../../../fixtures/update/drupal-8.user-email-token-2587275.php', - ]; - } - - /** - * Tests that email token in status_blocked of user.mail is updated. - */ - public function testEmailToken() { - $mail = \Drupal::config('user.mail')->get('status_blocked'); - $this->assertContains('[site:account-name]', $mail['body']); - $this->runUpdates(); - $mail = \Drupal::config('user.mail')->get('status_blocked'); - $this->assertNotContains('[site:account-name]', $mail['body']); - } - -}