We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47fdb4c commit 3ad4a34Copy full SHA for 3ad4a34
dev/tests/integration/framework/Magento/TestFramework/Eav/Model/GetAttributeGroupByName.php
@@ -47,9 +47,13 @@ public function __construct(
47
*/
48
public function execute(int $setId, string $groupName): ?AttributeGroupInterface
49
{
50
- $searchCriteria = $this->searchCriteriaBuilder->addFilter('attribute_group_name', $groupName)
51
- ->addFilter('attribute_set_id', $setId)
52
- ->create();
+ $searchCriteria = $this->searchCriteriaBuilder->addFilter(
+ AttributeGroupInterface::GROUP_NAME,
+ $groupName
53
+ )->addFilter(
54
+ AttributeGroupInterface::ATTRIBUTE_SET_ID,
55
+ $setId
56
+ )->create();
57
$result = $this->groupRepository->getList($searchCriteria)->getItems();
58
59
return array_shift($result);
0 commit comments