function it_add_attributes_to_attribute_group($groupSaver, $attributeSaver, AttributeGroupInterface $default, AttributeGroupInterface $group, AttributeInterface $sku, AttributeInterface $name)
 {
     $group->getMaxAttributeSortOrder()->willReturn(5);
     $sku->setSortOrder(6)->shouldBeCalled();
     $group->addAttribute($sku)->shouldBeCalled();
     $name->setSortOrder(7)->shouldBeCalled();
     $group->addAttribute($name)->shouldBeCalled();
     $attributeSaver->saveAll([$sku, $name])->shouldBeCalled();
     $groupSaver->save($group)->shouldBeCalled();
     $this->addAttributes($group, [$sku, $name]);
 }
 function it_add_attributes_to_attribute_group($objectManager, AttributeGroupInterface $default, AttributeGroupInterface $group, AttributeInterface $sku, AttributeInterface $name)
 {
     $group->getMaxAttributeSortOrder()->willReturn(5);
     $sku->setSortOrder(6)->shouldBeCalled();
     $group->addAttribute($sku)->shouldBeCalled();
     $objectManager->persist($sku)->shouldBeCalled();
     $name->setSortOrder(7)->shouldBeCalled();
     $group->addAttribute($name)->shouldBeCalled();
     $objectManager->persist($name)->shouldBeCalled();
     $objectManager->persist($group)->shouldBeCalled();
     $objectManager->flush()->shouldBeCalled();
     $this->addAttributes($group, [$sku, $name]);
 }