Skip to content
Snippets Groups Projects

Issue #3318313: Make OverwriteExistingPackagesValidatorTest fixture less

All threads resolved!
1 file
+ 5
6
Compare changes
  • Side-by-side
  • Inline
@@ -30,10 +30,8 @@ class OverwriteExistingPackagesValidatorTest extends PackageManagerKernelTestBas
*
* The fixture simulates a scenario where the active directory has three
* modules installed: module_1, module_2, and module_5. None of them are
* managed by Composer.
*
* The staging area has four modules: module_1, module_2, module_3, and
* module_5_different_path. All of them are managed by Composer.
* managed by Composer. These modules will be moved into the staging directory
* by the 'package_manager_bypass' module.
*/
public function testNewPackagesOverwriteExisting(): void {
$fixtures_dir = __DIR__ . '/../../fixtures/overwrite_existing_validation';
@@ -67,8 +65,9 @@ class OverwriteExistingPackagesValidatorTest extends PackageManagerKernelTestBas
'install_path' => '../../modules/module_3',
]);
// module_4 doesn't exist in the active directory but exists in the staged
// directory will cause an error because its path collides with module_1.
// module_4 doesn't exist in the active directory but the 'install_path' as
// known to Composer in the staged directory collides with module_1 in the
// active directory which will cause an error.
$this->addPackage($stage_dir, [
'name' => 'drupal/module_4',
'version' => '1.3.0',
Loading