Skip to content

Commit d0031ca

Browse files
committed
fixup! improve integration tests
Make getRootPackage use getAllRawData.
1 parent 33b0875 commit d0031ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/autoloader/autoload-with-composer/vendor/composer/InstalledVersions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static function getAllRawData()
3838
// This Composer's runtime API method is used by the agent to get the root package:
3939
public static function getRootPackage()
4040
{
41-
$installed = require __DIR__ . '/installed.php';
41+
$installed = self::getAllRawData();
4242
// This mock only returns a single dataset; in real life, there could be more
4343
return $installed[0]['root'];
4444
}

0 commit comments

Comments
 (0)