Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getOrderSequence example
static
::
assertEquals
(
10,
$extensionCriteria
->
getLimit
(
)
)
;
static
::
assertEquals
(
40,
$extensionCriteria
->
getOffset
(
)
)
;
}
public
function
testItIgnoresInvalidValuesForSortDirection
(
)
: void
{
$extensionCriteria
=
new
ExtensionCriteria
(
)
;
$extensionCriteria
->
setOrderSequence
(
'random'
)
;
static
::
assertEquals
(
ExtensionCriteria::ORDER_SEQUENCE_ASC,
$extensionCriteria
->
getOrderSequence
(
)
)
;
}
public
function
testOrderSequenceDesc
(
)
: void
{
$extensionCriteria
=
new
ExtensionCriteria
(
)
;
$extensionCriteria
->
setOrderSequence
(
'DesC'
)
;
static
::
assertEquals
(
ExtensionCriteria::ORDER_SEQUENCE_DESC,
$extensionCriteria
->
getOrderSequence
(
)
)
;
}