summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules')
-rw-r--r--core/modules/comment/tests/src/Kernel/Plugin/migrate/source/CommentTypeRequirementsTest.php1
-rw-r--r--core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldInstanceLabelDescriptionTest.php1
-rw-r--r--core/modules/migrate_drupal/tests/src/Kernel/d7/FollowUpMigrationsTest.php1
-rw-r--r--core/modules/package_manager/tests/src/Build/PackageInstallDirectWriteTest.php52
-rw-r--r--core/modules/package_manager/tests/src/Build/PackageInstallTest.php8
-rw-r--r--core/modules/system/tests/src/Functional/Module/VersionTest.php1
-rw-r--r--core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTranslationTest.php1
7 files changed, 58 insertions, 7 deletions
diff --git a/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/CommentTypeRequirementsTest.php b/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/CommentTypeRequirementsTest.php
index 379e51803b05..c04c478f3a2f 100644
--- a/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/CommentTypeRequirementsTest.php
+++ b/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/CommentTypeRequirementsTest.php
@@ -11,6 +11,7 @@ use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
* Tests check requirements for comment type source plugin.
*
* @group comment
+ * @group #slow
*/
class CommentTypeRequirementsTest extends MigrateDrupal7TestBase {
diff --git a/core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldInstanceLabelDescriptionTest.php b/core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldInstanceLabelDescriptionTest.php
index ca81ab17602b..20ea2c954b2c 100644
--- a/core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldInstanceLabelDescriptionTest.php
+++ b/core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldInstanceLabelDescriptionTest.php
@@ -13,6 +13,7 @@ use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
* Tests migration of field label and description translations.
*
* @group migrate_drupal_6
+ * @group #slow
*/
class MigrateFieldInstanceLabelDescriptionTest extends MigrateDrupal6TestBase implements MigrateDumpAlterInterface {
diff --git a/core/modules/migrate_drupal/tests/src/Kernel/d7/FollowUpMigrationsTest.php b/core/modules/migrate_drupal/tests/src/Kernel/d7/FollowUpMigrationsTest.php
index 151b7fae2477..c7d40c4c2d9d 100644
--- a/core/modules/migrate_drupal/tests/src/Kernel/d7/FollowUpMigrationsTest.php
+++ b/core/modules/migrate_drupal/tests/src/Kernel/d7/FollowUpMigrationsTest.php
@@ -12,6 +12,7 @@ use Drupal\user\Entity\User;
* Tests follow-up migrations.
*
* @group migrate_drupal
+ * @group #slow
*/
class FollowUpMigrationsTest extends MigrateDrupal7TestBase {
diff --git a/core/modules/package_manager/tests/src/Build/PackageInstallDirectWriteTest.php b/core/modules/package_manager/tests/src/Build/PackageInstallDirectWriteTest.php
new file mode 100644
index 000000000000..307d17cdcdb3
--- /dev/null
+++ b/core/modules/package_manager/tests/src/Build/PackageInstallDirectWriteTest.php
@@ -0,0 +1,52 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Drupal\Tests\package_manager\Build;
+
+use PHPUnit\Framework\Attributes\Group;
+
+/**
+ * Tests installing packages with direct write mode enabled.
+ *
+ * @internal
+ */
+#[Group('package_manager')]
+#[Group('#slow')]
+class PackageInstallDirectWriteTest extends TemplateProjectTestBase {
+
+ /**
+ * Tests installing packages in a stage directory.
+ */
+ public function testPackageInstall(): void {
+ $this->createTestProject('RecommendedProject');
+ $allow_direct_write = var_export(TRUE, TRUE);
+ $this->writeSettings("\n\$settings['package_manager_allow_direct_write'] = $allow_direct_write;");
+
+ $this->setReleaseMetadata([
+ 'alpha' => __DIR__ . '/../../fixtures/release-history/alpha.1.1.0.xml',
+ ]);
+ $this->addRepository('alpha', $this->copyFixtureToTempDirectory(__DIR__ . '/../../fixtures/build_test_projects/alpha/1.0.0'));
+ // Repository definitions affect the lock file hash, so update the hash to
+ // ensure that Composer won't complain that the lock file is out of sync.
+ $this->runComposer('composer update --lock', 'project');
+
+ // Use the API endpoint to create a stage and install alpha 1.0.0.
+ $this->makePackageManagerTestApiRequest(
+ '/package-manager-test-api',
+ [
+ 'runtime' => [
+ 'drupal/alpha:1.0.0',
+ ],
+ ]
+ );
+ // Assert the module was installed.
+ $this->assertFileEquals(
+ __DIR__ . '/../../fixtures/build_test_projects/alpha/1.0.0/composer.json',
+ $this->getWebRoot() . '/modules/contrib/alpha/composer.json',
+ );
+ $this->assertRequestedChangesWereLogged(['Install drupal/alpha 1.0.0']);
+ $this->assertAppliedChangesWereLogged(['Installed drupal/alpha 1.0.0']);
+ }
+
+}
diff --git a/core/modules/package_manager/tests/src/Build/PackageInstallTest.php b/core/modules/package_manager/tests/src/Build/PackageInstallTest.php
index bea2c0d40243..362343eaa91a 100644
--- a/core/modules/package_manager/tests/src/Build/PackageInstallTest.php
+++ b/core/modules/package_manager/tests/src/Build/PackageInstallTest.php
@@ -15,15 +15,9 @@ class PackageInstallTest extends TemplateProjectTestBase {
/**
* Tests installing packages in a stage directory.
- *
- * @testWith [true]
- * [false]
*/
- public function testPackageInstall(bool $allow_direct_write): void {
+ public function testPackageInstall(): void {
$this->createTestProject('RecommendedProject');
- $allow_direct_write = var_export($allow_direct_write, TRUE);
- $this->writeSettings("\n\$settings['package_manager_allow_direct_write'] = $allow_direct_write;");
-
$this->setReleaseMetadata([
'alpha' => __DIR__ . '/../../fixtures/release-history/alpha.1.1.0.xml',
]);
diff --git a/core/modules/system/tests/src/Functional/Module/VersionTest.php b/core/modules/system/tests/src/Functional/Module/VersionTest.php
index 7f3af598cfb8..1a98b7f246fa 100644
--- a/core/modules/system/tests/src/Functional/Module/VersionTest.php
+++ b/core/modules/system/tests/src/Functional/Module/VersionTest.php
@@ -8,6 +8,7 @@ namespace Drupal\Tests\system\Functional\Module;
* Tests module version dependencies.
*
* @group Module
+ * @group #slow
*/
class VersionTest extends ModuleTestBase {
diff --git a/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTranslationTest.php b/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTranslationTest.php
index 1fb8b819fdc7..3499a404ac95 100644
--- a/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTranslationTest.php
+++ b/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTranslationTest.php
@@ -12,6 +12,7 @@ use Drupal\taxonomy\TermInterface;
* Test migration of translated taxonomy terms.
*
* @group migrate_drupal_7
+ * @group #slow
*/
class MigrateTaxonomyTermTranslationTest extends MigrateDrupal7TestBase {