Issue #3321236: Add actual project folder changes from methods in FixtureUtilityTrait
5 unresolved threads
Merge request reports
Activity
added 10 commits
-
5f31b76b...6aa1c251 - 9 commits from branch
project:8.x-2.x
- c235c2bd - Merge branch '8.x-2.x' into 3321236-add-project-folder
-
5f31b76b...6aa1c251 - 9 commits from branch
117 if (!$create_project || !in_array($package['type'], $drupal_project_types, TRUE)) { 118 return; 119 } 120 $this->assertNotEmpty($package['install_path']); 121 $install_path = "$dir/vendor/composer/" . $package['install_path']; 122 $this->addProjectAtPath($install_path); 123 } 124 125 /** 126 * Adds a project at a path. 127 * 128 * @param string $path 129 * The path. 130 * @param string|null $project_name 131 * (optional) The project name. If known is specified the last part of the 132 * path will be used. Needs a todo in the doc to move this method to to the new FixtureManipulator class in https://www.drupal.org/project/automatic_updates/issues/3322913
227 225 public function testException(array $release_metadata, ?string $stage_fixture_dir, bool $project_in_active, array $package, array $expected_results): void { 228 226 $this->setReleaseMetadata(['drupal' => __DIR__ . '/../../fixtures/release-history/drupal.9.8.2.xml'] + $release_metadata); 229 227 230 $listener = function (PreApplyEvent $event) use ($project_in_active, $package, $stage_fixture_dir): void { 231 if ($stage_fixture_dir) { 111 128 try { 112 129 $stage->apply(); 113 130 // If no exception occurs, ensure we weren't expecting any errors. 114 $this->assertEmpty($expected_results); 131 $this->assertValidationResultsEqual($expected_results, []); 115 132 } 116 133 catch (StageValidationException $e) { 117 134 $this->assertNotEmpty($expected_results); 118 $this->assertValidationResultsEqual($expected_results, $e->getResults()); 119 135 } 36 36 * by the 'package_manager_bypass' module. 37 37 */ 38 38 public function testNewPackagesOverwriteExisting(): void { 39 $fixtures_dir = __DIR__ . '/../../fixtures/overwrite_existing_validation'; 40 $this->copyFixtureFolderToActiveDirectory("$fixtures_dir/active"); 41 39 $active_dir = $this->container->get('package_manager.path_locator')->getProjectRoot(); 40 $modules_dir = "$active_dir/modules"; 41 $this->addProjectAtPath("$modules_dir/module_1"); 42 $this->addProjectAtPath("$modules_dir/module_2"); 43 $this->addProjectAtPath("$modules_dir/module_5"); 212 201 * 213 202 * @param array $release_metadata 214 203 * Array of paths of the fake release metadata keyed by project name. 215 * @param string|null $stage_fixture_dir 216 * Path of fixture stage directory or NULL. It will be used to fixture files 217 204 * to virtual stage directory when the project is not in active. changed this line in version 10 of the diff
added 11 commits
-
79e1f7cc...f4a86801 - 3 commits from branch
project:8.x-2.x
- df6be702 - add folders
- 40e28dda - add param doc
- 9acb89b9 - add install_path key
- f8e5bdc1 - fix OverwriteExistingPackagesValidatorTest.php
- 3ff0c20b - test fix
- 4fc36dff - adding todo reverting change
- 0cd9ff46 - removing unused
- 5ed59716 - removing the extra line
Toggle commit list-
79e1f7cc...f4a86801 - 3 commits from branch
Please register or sign in to reply