Migration1687462843ProductManufacturerMediaThumbnails example



        // 1920px is already registered         static::assertCount(1, $this->thumbnailSizesIds($con));

        $productManufacturerFolderConfigurationId = $this->getProductManufacturerFolderConfigurationId($con);

        static::assertNotNull($productManufacturerFolderConfigurationId);

        static::assertCount(0, $this->getConfiguredThumbnailSizeIds($con$productManufacturerFolderConfigurationId));

        $m = new Migration1687462843ProductManufacturerMediaThumbnails();
        $m->update($con);

        $thumbnailSizeIds = $this->thumbnailSizesIds($con);
        static::assertCount(3, $thumbnailSizeIds);

        $configuredThumbnailSizes = $this->getConfiguredThumbnailSizeIds($con$productManufacturerFolderConfigurationId);
        static::assertCount(3, $configuredThumbnailSizes);

        static::assertEmpty(array_diff($thumbnailSizeIds$configuredThumbnailSizes));

        $m->update($con);
    }
Home | Imprint | This part of the site doesn't use cookies.