Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setSalutationKey example
#[Package('buyers-experience')]
class
SalutationSorterTest
extends
TestCase
{
public
function
testSort
(
)
: void
{
$mrs
=
new
SalutationEntity
(
)
;
$mrs
->
setId
(
Uuid::
randomBytes
(
)
)
;
$mrs
->
setSalutationKey
(
'mrs'
)
;
$mr
=
new
SalutationEntity
(
)
;
$mr
->
setId
(
Uuid::
randomBytes
(
)
)
;
$mr
->
setSalutationKey
(
'mr'
)
;
$notSpecified
=
new
SalutationEntity
(
)
;
$notSpecified
->
setId
(
Uuid::
randomBytes
(
)
)
;
$notSpecified
->
setSalutationKey
(
'not_specified'
)
;
$test
=
new
SalutationEntity
(
)
;
$test
->
setId
(
Uuid::
randomHex
(
)
)
;