public function testGetExtension(string
$file, string
$statusName, ?string
$statusColor): void
{ $storeClient =
$this->
createMock(StoreClient::
class);
$storeClient->
method('getExtensionCompatibilities'
)->
willReturn(json_decode((string) file_get_contents($file), true, 512, \JSON_THROW_ON_ERROR
));
$pluginCompatibility =
new ExtensionCompatibility( $storeClient,
$this->
getExtensionDataProvider() );
$version =
new Version();
$version->
assign([ 'version' => '6.6.0.0',
]);
$getExtensionCompatibilities =
$pluginCompatibility->
getExtensionCompatibilities($version, Context::
createDefaultContext());
static::
assertSame($statusName,
$getExtensionCompatibilities[0
]['statusName'
]);
static::
assertSame($statusColor,
$getExtensionCompatibilities[0
]['statusColor'
]);
} /**
* @return iterable<string, array{0: string, 1: string, 2: string|null}>
*/