Loading core/.cspell.json +1 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ "modules/**/Migrate*Test.php", "modules/ckeditor5/js/build/*", "modules/color/preview.html", "modules/color/tests/fixtures/drupal7.php", "modules/color/tests/modules/color_test/themes/color_test_theme/color/preview.html", "modules/media/tests/fixtures/oembed/*", "modules/migrate_drupal/tests/fixtures/drupal6.php", Loading core/modules/color/tests/fixtures/drupal7.php 0 → 100644 +26061 −0 File added.Preview size limit exceeded, changes collapsed. Show changes core/modules/color/tests/src/Functional/Migrate/NoMultilingualReviewPageTest.php 0 → 100644 +74 −0 Original line number Diff line number Diff line <?php namespace Drupal\Tests\color\Functional\Migrate; use Drupal\Tests\migrate_drupal_ui\Functional\NoMultilingualReviewPageTestBase; /** * Tests review page. * * The test method is provided by the MigrateUpgradeTestBase class. * * @group color */ class NoMultilingualReviewPageTest extends NoMultilingualReviewPageTestBase { /** * {@inheritdoc} */ protected static $modules = ['color']; /** * {@inheritdoc} */ protected function setUp(): void { parent::setUp(); $this->loadFixture($this->getModulePath('color') . '/tests/fixtures/drupal7.php'); } /** * Tests that Color is displayed in the will be upgraded list. */ public function testMigrateUpgradeReviewPage() { $this->prepare(); // Start the upgrade process. $this->submitCredentialForm(); $session = $this->assertSession(); $this->submitForm([], 'I acknowledge I may lose data. Continue anyway.'); $session->statusCodeEquals(200); // Confirm that Color will be upgraded. $session->elementExists('xpath', "//td[contains(@class, 'checked') and text() = 'Color']"); $session->elementNotExists('xpath', "//td[contains(@class, 'error') and text() = 'Color']"); } /** * {@inheritdoc} */ protected function getSourceBasePath() { return __DIR__; } /** * {@inheritdoc} */ protected function getAvailablePaths() { return []; } /** * {@inheritdoc} */ protected function getIncompletePaths() { return []; } /** * {@inheritdoc} */ protected function getMissingPaths() { return []; } } core/modules/color/tests/src/Kernel/Migrate/d7/MigrateColorTest.php +7 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,13 @@ protected function setUp(): void { $this->executeMigration('d7_color'); } /** * Gets the path to the fixture file. */ protected function getFixtureFilePath() { return __DIR__ . '/../../../../fixtures/drupal7.php'; } /** * Tests migration of color's variables to configuration. */ Loading core/modules/migrate_drupal/tests/src/Kernel/StateFileExistsTest.php +1 −0 Original line number Diff line number Diff line Loading @@ -41,6 +41,7 @@ class StateFileExistsTest extends MigrateDrupalTestBase { 'block', 'block_content', 'book', // @todo Remove Color in https://www.drupal.org/project/drupal/issues/3270899 'color', 'comment', 'config_translation', Loading Loading
core/.cspell.json +1 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ "modules/**/Migrate*Test.php", "modules/ckeditor5/js/build/*", "modules/color/preview.html", "modules/color/tests/fixtures/drupal7.php", "modules/color/tests/modules/color_test/themes/color_test_theme/color/preview.html", "modules/media/tests/fixtures/oembed/*", "modules/migrate_drupal/tests/fixtures/drupal6.php", Loading
core/modules/color/tests/fixtures/drupal7.php 0 → 100644 +26061 −0 File added.Preview size limit exceeded, changes collapsed. Show changes
core/modules/color/tests/src/Functional/Migrate/NoMultilingualReviewPageTest.php 0 → 100644 +74 −0 Original line number Diff line number Diff line <?php namespace Drupal\Tests\color\Functional\Migrate; use Drupal\Tests\migrate_drupal_ui\Functional\NoMultilingualReviewPageTestBase; /** * Tests review page. * * The test method is provided by the MigrateUpgradeTestBase class. * * @group color */ class NoMultilingualReviewPageTest extends NoMultilingualReviewPageTestBase { /** * {@inheritdoc} */ protected static $modules = ['color']; /** * {@inheritdoc} */ protected function setUp(): void { parent::setUp(); $this->loadFixture($this->getModulePath('color') . '/tests/fixtures/drupal7.php'); } /** * Tests that Color is displayed in the will be upgraded list. */ public function testMigrateUpgradeReviewPage() { $this->prepare(); // Start the upgrade process. $this->submitCredentialForm(); $session = $this->assertSession(); $this->submitForm([], 'I acknowledge I may lose data. Continue anyway.'); $session->statusCodeEquals(200); // Confirm that Color will be upgraded. $session->elementExists('xpath', "//td[contains(@class, 'checked') and text() = 'Color']"); $session->elementNotExists('xpath', "//td[contains(@class, 'error') and text() = 'Color']"); } /** * {@inheritdoc} */ protected function getSourceBasePath() { return __DIR__; } /** * {@inheritdoc} */ protected function getAvailablePaths() { return []; } /** * {@inheritdoc} */ protected function getIncompletePaths() { return []; } /** * {@inheritdoc} */ protected function getMissingPaths() { return []; } }
core/modules/color/tests/src/Kernel/Migrate/d7/MigrateColorTest.php +7 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,13 @@ protected function setUp(): void { $this->executeMigration('d7_color'); } /** * Gets the path to the fixture file. */ protected function getFixtureFilePath() { return __DIR__ . '/../../../../fixtures/drupal7.php'; } /** * Tests migration of color's variables to configuration. */ Loading
core/modules/migrate_drupal/tests/src/Kernel/StateFileExistsTest.php +1 −0 Original line number Diff line number Diff line Loading @@ -41,6 +41,7 @@ class StateFileExistsTest extends MigrateDrupalTestBase { 'block', 'block_content', 'book', // @todo Remove Color in https://www.drupal.org/project/drupal/issues/3270899 'color', 'comment', 'config_translation', Loading