Skip to content

Commit 3ad4a34

Browse files
MC-20660: Admin: Assign/delete image(s) from simple product in single/multiple store views mode
1 parent 47fdb4c commit 3ad4a34

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

dev/tests/integration/framework/Magento/TestFramework/Eav/Model/GetAttributeGroupByName.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,13 @@ public function __construct(
4747
*/
4848
public function execute(int $setId, string $groupName): ?AttributeGroupInterface
4949
{
50-
$searchCriteria = $this->searchCriteriaBuilder->addFilter('attribute_group_name', $groupName)
51-
->addFilter('attribute_set_id', $setId)
52-
->create();
50+
$searchCriteria = $this->searchCriteriaBuilder->addFilter(
51+
AttributeGroupInterface::GROUP_NAME,
52+
$groupName
53+
)->addFilter(
54+
AttributeGroupInterface::ATTRIBUTE_SET_ID,
55+
$setId
56+
)->create();
5357
$result = $this->groupRepository->getList($searchCriteria)->getItems();
5458

5559
return array_shift($result);

0 commit comments

Comments
 (0)