Skip to content
Snippets Groups Projects

Issue #3321236: Add actual project folder changes from methods in FixtureUtilityTrait

Merged Issue #3321236: Add actual project folder changes from methods in FixtureUtilityTrait
5 unresolved threads
5 unresolved threads

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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.
  • omkar podey added 7 commits

    added 7 commits

    Compare with previous version

  • 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) {
  • omkar podey added 1 commit

    added 1 commit

    • 820c2386 - adding todo reverting change

    Compare with previous version

  • Wim Leers
  • 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 }
  • Wim Leers
  • 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");
  • omkar podey added 1 commit

    added 1 commit

    Compare with previous version

  • 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.
  • omkar podey added 1 commit

    added 1 commit

    Compare with previous version

  • Ted Bowman added 11 commits

    added 11 commits

    Compare with previous version

  • merged

  • Please register or sign in to reply
    Loading