Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getSearch example
$extensionCriteria
->
getQueryParameter
(
)
[
'orderSequence'
]
)
;
}
public
function
testToQueryStringSkipsSearchIfNotPresent
(
)
: void
{
$extensionCriteria
=
new
ExtensionCriteria
(
)
;
static
::
assertArrayNotHasKey
(
'search',
$extensionCriteria
->
getQueryParameter
(
)
)
;
$extensionCriteria
->
setSearch
(
'my search'
)
;
static
::
assertEquals
(
'my search',
$extensionCriteria
->
getQueryParameter
(
)
[
'search'
]
)
;
static
::
assertEquals
(
'my search',
$extensionCriteria
->
getSearch
(
)
)
;
}
public
function
testItFlattensFilterInQuery
(
)
: void
{
$extensionCriteria
=
new
ExtensionCriteria
(
)
;
$extensionCriteria
->
addFilter
(
[
'type' => 'multi',
'operator' => 'AND',
'queries' =>
[
[
'type' => 'equals',