Loading core/tests/Drupal/BuildTests/Composer/Component/ComponentsIsolatedBuildTest.php +8 −3 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ use Drupal\BuildTests\Composer\ComposerBuildTestBase; use Drupal\Composer\Composer; use Symfony\Component\Finder\Finder; /** * Try to install dependencies per component, using Composer. Loading Loading @@ -34,7 +35,7 @@ public function provideComponentPaths(): array { /** @var \Symfony\Component\Finder\SplFileInfo $path */ foreach ($composer_json_finder->getIterator() as $path) { $data[] = ['/' . $path->getRelativePath()]; $data[$path->getRelativePath()] = ['/' . $path->getRelativePath()]; } return $data; } Loading @@ -47,8 +48,12 @@ public function provideComponentPaths(): array { 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); $finder = new Finder(); $finder->files() ->ignoreUnreadableDirs() ->in($this->getDrupalRoot() . static::$componentsPath) ->ignoreDotFiles(FALSE) ->ignoreVCS(FALSE); $this->copyCodebase($finder->getIterator()); $working_dir = $this->getWorkingPath() . static::$componentsPath . $component_path; Loading Loading
core/tests/Drupal/BuildTests/Composer/Component/ComponentsIsolatedBuildTest.php +8 −3 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ use Drupal\BuildTests\Composer\ComposerBuildTestBase; use Drupal\Composer\Composer; use Symfony\Component\Finder\Finder; /** * Try to install dependencies per component, using Composer. Loading Loading @@ -34,7 +35,7 @@ public function provideComponentPaths(): array { /** @var \Symfony\Component\Finder\SplFileInfo $path */ foreach ($composer_json_finder->getIterator() as $path) { $data[] = ['/' . $path->getRelativePath()]; $data[$path->getRelativePath()] = ['/' . $path->getRelativePath()]; } return $data; } Loading @@ -47,8 +48,12 @@ public function provideComponentPaths(): array { 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); $finder = new Finder(); $finder->files() ->ignoreUnreadableDirs() ->in($this->getDrupalRoot() . static::$componentsPath) ->ignoreDotFiles(FALSE) ->ignoreVCS(FALSE); $this->copyCodebase($finder->getIterator()); $working_dir = $this->getWorkingPath() . static::$componentsPath . $component_path; Loading