File tree 1 file changed +6
-8
lines changed
app/code/Magento/MediaContentSynchronization/Test/Integration/Model
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -72,19 +72,17 @@ public function testExecute(array $mediaContentIdentities): void
72
72
73
73
foreach ($ mediaContentIdentities as $ contentIdentity ) {
74
74
$ assetId = 2020 ;
75
- $ categoryId = 28767 ;
76
- $ productId = 1567 ;
77
- $ pageId = 5 ;
78
- $ blockId = 1 ;
79
75
$ identity = $ this ->contentIdentityFactory ->create ($ contentIdentity );
80
76
$ this ->assertEquals ([$ assetId ], $ this ->getAssetIds ->execute ($ identity ));
81
77
82
78
$ synchronizedContentIdentities = $ this ->getContentIdentities ->execute ([$ assetId ]);
83
79
$ this ->assertEquals (4 , count ($ synchronizedContentIdentities ));
84
- $ this ->assertEquals ($ categoryId , $ synchronizedContentIdentities [0 ]->getEntityId ());
85
- $ this ->assertEquals ($ productId , $ synchronizedContentIdentities [1 ]->getEntityId ());
86
- $ this ->assertEquals ($ pageId , $ synchronizedContentIdentities [2 ]->getEntityId ());
87
- $ this ->assertEquals ($ blockId , $ synchronizedContentIdentities [3 ]->getEntityId ());
80
+
81
+ $ syncedIds = [];
82
+ foreach ($ synchronizedContentIdentities as $ syncedContentIdentity ) {
83
+ $ syncedIds [] = (int )$ syncedContentIdentity ->getEntityId ();
84
+ }
85
+ $ this ->assertContains ($ contentIdentity ['entityId ' ], $ syncedIds );
88
86
}
89
87
}
90
88
You can’t perform that action at this time.
0 commit comments