File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml/Product/Set Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ private function createAttributeSetBySkeletonAndAssert(
310
310
);
311
311
$ this ->dispatch ('backend/catalog/product_set/save/ ' );
312
312
$ this ->assertSessionMessages (
313
- $ this ->contains ( 'You saved the attribute set. ' ),
313
+ $ this ->equalTo ([( string ) __ ( 'You saved the attribute set. ' )] ),
314
314
MessageInterface::TYPE_SUCCESS
315
315
);
316
316
$ createdAttributeSet = $ this ->getAttributeSetByName ($ attributeSetName );
@@ -339,16 +339,15 @@ private function assertAttributeSetsAttributesAreEquals(
339
339
$ existAttributeSet ->getAttributeSetId ()
340
340
)
341
341
);
342
+ sort ($ expectedAttributeIds );
342
343
$ actualAttributeIds = array_keys (
343
344
$ this ->attributeManagement ->getAttributes (
344
345
ProductAttributeInterface::ENTITY_TYPE_CODE ,
345
346
$ createdAttributeSet ->getAttributeSetId ()
346
347
)
347
348
);
348
- $ this ->assertEquals (count ($ expectedAttributeIds ), count ($ actualAttributeIds ));
349
- foreach ($ actualAttributeIds as $ attributeId ) {
350
- $ this ->assertContains ($ attributeId , $ expectedAttributeIds );
351
- }
349
+ sort ($ actualAttributeIds );
350
+ $ this ->assertSame ($ expectedAttributeIds , $ actualAttributeIds );
352
351
}
353
352
354
353
/**
You can’t perform that action at this time.
0 commit comments