Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
assertMediaHasParentFolder example
'parentId' =>
$parentId
,
'useParentConfiguration' => true,
'configurationId' =>
$configId
,
]
,
]
,
$this
->context
)
;
$mediaFolderId
=
$media
->
getMediaFolderId
(
)
;
static
::
assertIsString
(
$mediaFolderId
)
;
$this
->mediaFolderService->
dissolve
(
$mediaFolderId
,
$this
->context
)
;
$this
->
assertMediaFolderIsDeleted
(
$media
)
;
$this
->
assertMediaHasParentFolder
(
$media
,
$parentId
)
;
$this
->
assertConfigStillExists
(
$configId
)
;
}
public
function
testDissolveWithChildren
(
)
: void
{
$this
->
setFixtureContext
(
$this
->context
)
;
$media
=
$this
->
getJpgWithFolder
(
)
;
$configId
= Uuid::
randomHex
(
)
;
$parentId
= Uuid::
randomHex
(
)
;
$child1Id
= Uuid::
randomHex
(
)
;
$child2Id
= Uuid::
randomHex
(
)
;