Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getSetGroupPackagers example
$packager
]
,
[
$sorter
]
,
)
;
$this
->promotionActionController =
new
PromotionActionController
(
$serviceRegistry
)
;
}
public
function
testSetGroupPackager
(
)
: void
{
$response
=
$this
->promotionActionController->
getSetGroupPackagers
(
)
;
$content
=
$response
->
getContent
(
)
;
static
::
assertNotFalse
(
$content
)
;
$json
= \
json_decode
(
$content
, null, 512, \JSON_THROW_ON_ERROR
)
;
static
::
assertIsArray
(
$json
)
;
static
::
assertCount
(
1,
$json
)
;
static
::
assertContains
(
'test-packager',
$json
)
;
}