ExtensionCompatibility example


class ExtensionCompatibilityTest extends TestCase
{
    /** * @dataProvider statusProvider */
    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());

        
Home | Imprint | This part of the site doesn't use cookies.