Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
DomainsDeltaProvider example
/** * @internal */
class
DomainsDeltaProviderTest
extends
TestCase
{
use
IntegrationTestBehaviour;
public
function
testGetName
(
)
: void
{
$expected
= 'domains';
static
::
assertSame
(
$expected
, DomainsDeltaProvider::DELTA_NAME
)
;
static
::
assertSame
(
$expected
,
(
new
DomainsDeltaProvider
(
)
)
->
getDeltaName
(
)
)
;
}
public
function
testGetDomainsDelta
(
)
: void
{
$context
= Context::
createDefaultContext
(
)
;
$manifest
=
$this
->
getTestManifest
(
)
;
$this
->
getAppLifecycle
(
)
->
install
(
$manifest
, false,
$context
)
;
$criteria
=
(
new
Criteria
(
)
)
->
addFilter
(
new
EqualsFilter
(
'name', 'test'
)
)