Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getAfterOrderEnabled example
static
::
assertSame
(
$this
->paymentMethodId,
$firstPaymentMethod
->
getId
(
)
)
;
static
::
assertNotNull
(
$firstPaymentMethod
->
getAvailabilityRule
(
)
)
;
static
::
assertSame
(
$paymentMethod
[
0
]
[
'availabilityRule'
]
[
'id'
]
,
$firstPaymentMethod
->
getAvailabilityRule
(
)
->
getId
(
)
)
;
static
::
assertSame
(
'handler_shopware_asynctestpaymenthandler',
$firstPaymentMethod
->
getFormattedHandlerIdentifier
(
)
)
;
static
::
assertFalse
(
$firstPaymentMethod
->
getAfterOrderEnabled
(
)
)
;
}
public
function
testPaymentMethodSetAfterOrder
(
)
: void
{
$defaultContext
= Context::
createDefaultContext
(
)
;
$paymentMethod
=
$this
->
createPaymentMethodDummyArray
(
)
;
$paymentMethod
[
0
]
[
'afterOrderEnabled'
]
= true;
$this
->paymentRepository->
create
(
$paymentMethod
,
$defaultContext
)
;