Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
assertThumbnailExists example
$medias
=
$this
->
getNewMediaEntities
(
)
;
foreach
(
$medias
as
$updatedMedia
)
{
$thumbnails
=
$updatedMedia
->
getThumbnails
(
)
;
static
::
assertNotNull
(
$thumbnails
)
;
static
::
assertEquals
(
2,
$thumbnails
->
count
(
)
)
;
foreach
(
$thumbnails
as
$thumbnail
)
{
$this
->
assertThumbnailExists
(
$updatedMedia
,
$thumbnail
)
;
}
}
}
public
function
testExecuteWithCustomLimit
(
)
: void
{
$this
->
createValidMediaFiles
(
)
;
$input
=
new
StringInput
(
'-b 2'
)
;
$output
=
new
BufferedOutput
(
)
;