Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
countNotUsedMedia example
public
function
testCountNotUsedMedia
(
)
: void
{
$this
->
setFixtureContext
(
$this
->context
)
;
$this
->
getTxt
(
)
;
$this
->
getPngWithoutExtension
(
)
;
$this
->
getMediaWithProduct
(
)
;
$this
->
getMediaWithManufacturer
(
)
;
static
::
assertEquals
(
2,
$this
->deleteMediaService->
countNotUsedMedia
(
$this
->context
)
)
;
}
public
function
testDeleteNotUsedMedia
(
)
: void
{
$this
->
setFixtureContext
(
$this
->context
)
;
$txt
=
$this
->
getTxt
(
)
;
$png
=
$this
->
getPng
(
)
;
$withProduct
=
$this
->
getMediaWithProduct
(
)
;
$withManufacturer
=
$this
->
getMediaWithManufacturer
(
)
;