Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
testIndexing example
static
::
assertEquals
(
$expected
,
$price
->
getUnitPrice
(
)
,
$error
)
;
}
$error
=
sprintf
(
'Case "%s": Product with key %s, cheapest price not match',
$message
,
$key
)
;
static
::
assertEquals
(
$assertion
[
'cheapest'
]
,
$product
->
getCalculatedCheapestPrice
(
)
->
getUnitPrice
(
)
,
$error
)
;
}
}
}
finally
{
// Manually handle state changes
static
::
stopTransactionAfter
(
)
;
static
::
startTransactionBefore
(
)
;
$this
->
testIndexing
(
$ids
)
;
}
}
/** * @depends testIndexing */
public
function
testFilterPercentage
(
IdsCollection
$ids
)
: void
{
try
{
$cases
=
$this
->
providerFilterPercentage
(
)
;