__DIR__ . '/_fixture/LocallyInstalledPlugins',
__DIR__ . '/_fixture/ComposerProject',
new ExceptionCollection(),
new NullIO() );
static::
assertInstanceOf(PluginFromFileSystemStruct::
class,
$plugins['Swag\Test'
]);
static::
assertTrue($plugins['Swag\Test'
]->
getManagedByComposer());
// path is still local if it exists
static::
assertEquals(__DIR__ . '/_fixture/LocallyInstalledPlugins/SwagTest',
$plugins['Swag\Test'
]->
getPath());
// version info is still from local, as that might be more up to date
static::
assertEquals('v1.0.2',
$plugins['Swag\Test'
]->
getComposerPackage()->
getPrettyVersion());
} public function testComposerPackageFromPluginIsUsedIfNoLocalInstalledVersionExists(): void
{ $plugins =
(new PluginFinder(new PackageProvider()))->
findPlugins( __DIR__ . '/_fixture/LocallyInstalledPlugins',
__DIR__ . '/_fixture/ComposerProject',
new ExceptionCollection(),
new NullIO() );