'Required plugin/package "test/not-installed ~2" is missing or not installed and activated',
$messages );
} public function testDoesNotValidateIfPluginIsManagedByComposer(): void
{ $path = __DIR__ . '/_fixture/SwagRequirementInvalidTest';
$path =
str_replace($this->projectDir, '',
$path);
$plugin =
$this->
createPlugin($path);
$plugin->
setManagedByComposer(true
);
$exception = null;
try { $this->
createValidator()->
validateRequirements($plugin, Context::
createDefaultContext(), 'test'
);
} catch (RequirementStackException
$exception) { } static::
assertNull($exception);
}