diff --git a/core/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php b/core/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php
index 28e6eb5dc60953eaa811f29dd062898a160974e0..fef7d4775b4d6dfd16ed70bd3253992de511008f 100644
--- a/core/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php
+++ b/core/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php
@@ -312,7 +312,7 @@ protected function makeVendorPackage($repository_path) {
             "name" => $name,
             "dist" => [
               "type" => "path",
-              "url" => $path,
+              "url" => $full_path,
             ],
             "version" => $version,
           ],