addExpectedRepositories example


  public function testComponentComposerJson(string $component_path): void {
    // Only copy the components. Copy all of them because some of them depend on     // each other.     $finder = $this->getCodebaseFinder();
    $finder->in($this->getDrupalRoot() . static::$componentsPath);
    $this->copyCodebase($finder->getIterator());

    $working_dir = $this->getWorkingPath() . static::$componentsPath . $component_path;

    // We add path repositories so we can wire internal dependencies together.     $this->addExpectedRepositories($working_dir);

    // Perform the installation.     $this->executeCommand("composer install --working-dir=$working_dir --no-interaction --no-progress");
    $this->assertCommandSuccessful();
  }

  /** * Adds expected repositories as path repositories to package under test. * * @param string $working_dir * The working directory. */
Home | Imprint | This part of the site doesn't use cookies.