Verified Commit fb22d963 authored by Lee Rowlands's avatar Lee Rowlands
Browse files

task: #3612939 Optimize ComponentsTaggedReleaseTest

By: catch
parent de512b74
Loading
Loading
Loading
Loading
Loading
+15 −1
Changes for core/tests/Drupal/BuildTests/Composer/Component/ComponentsTaggedReleaseTest.php: 15 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -41,7 +41,21 @@ public static function providerVersionConstraint(): array {
   */
  #[DataProvider('providerVersionConstraint')]
  public function testReleaseTagging(string $tag, string $constraint): void {
    $this->copyCodebase();

    $drupal_root = $this->getWorkingPathDrupalRoot() ?? '';

    $finder = $this->getCodebaseFinder();
    $finder->notPath("#^{$drupal_root}core/assets#");
    $finder->notPath("#^{$drupal_root}core/misc#");
    $finder->notPath("#^{$drupal_root}core/modules#");
    $finder->notPath("#^{$drupal_root}core/phpstan-tmp#");
    $finder->notPath("#^{$drupal_root}core/profiles#");
    $finder->notPath("#^{$drupal_root}core/recipes#");
    $finder->notPath("#^{$drupal_root}core/themes#");
    $finder->notPath("#^{$drupal_root}(.+)tests#");
    $finder->notPath("#^{$drupal_root}vendor#");

    $this->copyCodebase($finder->getIterator());
    $drupal_root = $this->getWorkspaceDirectory();

    // Set the core version.