Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setEventConfig example
static
::
assertEquals
(
$evenConfig
,
$attachmentsConfig
->
getEventConfig
(
)
)
;
static
::
assertEquals
(
$orderId
,
$attachmentsConfig
->
getOrderId
(
)
)
;
$attachmentsConfig
=
$this
->
getMockBuilder
(
MailAttachmentsConfig::
class
)
->
disableOriginalConstructor
(
)
->
onlyMethods
(
[
]
)
->
getMock
(
)
;
$attachmentsConfig
->
setContext
(
$context
)
;
$attachmentsConfig
->
setMailTemplate
(
$mailTemplate
)
;
$attachmentsConfig
->
setExtension
(
$extension
)
;
$attachmentsConfig
->
setEventConfig
(
$evenConfig
)
;
$attachmentsConfig
->
setOrderId
(
$orderId
)
;
static
::
assertEquals
(
$context
,
$attachmentsConfig
->
getContext
(
)
)
;
static
::
assertEquals
(
$mailTemplate
,
$attachmentsConfig
->
getMailTemplate
(
)
)
;
static
::
assertEquals
(
$extension
,
$attachmentsConfig
->
getExtension
(
)
)
;
static
::
assertEquals
(
$evenConfig
,
$attachmentsConfig
->
getEventConfig
(
)
)
;
static
::
assertEquals
(
$orderId
,
$attachmentsConfig
->
getOrderId
(
)
)
;
}
}