Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
assertMediaFolderIsAtRootLevel example
'thumbnailQuality' => 80,
]
,
]
,
]
,
$this
->context
)
;
$mediaFolderId
=
$media
->
getMediaFolderId
(
)
;
static
::
assertIsString
(
$mediaFolderId
)
;
$this
->mediaFolderService->
dissolve
(
$mediaFolderId
,
$this
->context
)
;
$this
->
assertMediaFolderIsDeleted
(
$media
)
;
$this
->
assertMediaHasNoFolder
(
$media
)
;
$this
->
assertMediaFolderIsAtRootLevel
(
$childId
)
;
$this
->
assertConfigStillExists
(
$configId
)
;
}
public
function
testDissolveWithInheritedConfig
(
)
: void
{
$this
->
setFixtureContext
(
$this
->context
)
;
$media
=
$this
->
getJpgWithFolder
(
)
;
$parentId
= Uuid::
randomHex
(
)
;
$configId
= Uuid::
randomHex
(
)
;
$this
->mediaFolderRepo->
create
(
[
[