Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
Migration1687463180ProductMediaThumbnails example
$this
->
revertMigration
(
$con
)
;
}
static
::
assertCount
(
0,
$this
->
thumbnailSizesIds
(
$con
)
)
;
$productManufacturerFolderConfigurationId
=
$this
->
getProductFolderConfigurationId
(
$con
)
;
static
::
assertNotNull
(
$productManufacturerFolderConfigurationId
)
;
$beforeConfiguredThumbnailSizeIds
=
$this
->
getConfiguredThumbnailSizeIds
(
$con
,
$productManufacturerFolderConfigurationId
)
;
$m
=
new
Migration1687463180ProductMediaThumbnails
(
)
;
$m
->
update
(
$con
)
;
$thumbnailSizeIds
=
$this
->
thumbnailSizesIds
(
$con
)
;
static
::
assertCount
(
1,
$thumbnailSizeIds
)
;
$configuredThumbnailSizes
=
$this
->
getConfiguredThumbnailSizeIds
(
$con
,
$productManufacturerFolderConfigurationId
)
;
static
::
assertCount
(
\
count
(
$beforeConfiguredThumbnailSizeIds
)
+ 1,
$configuredThumbnailSizes
)
;
$m
->
update
(
$con
)
;
}