Skip to content

Commit 0779ff2

Browse files
MC-21001: Add/move/delete attribute for attribute sets
1 parent 25414ff commit 0779ff2

File tree

1 file changed

+4
-6
lines changed
  • dev/tests/integration/testsuite/Magento/Eav/Model/Entity/Attribute

1 file changed

+4
-6
lines changed

dev/tests/integration/testsuite/Magento/Eav/Model/Entity/Attribute/SetTest.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
/**
2323
* Provides tests for attribute set model saving.
24+
*
25+
* @magentoDbIsolation enabled
2426
*/
2527
class SetTest extends \PHPUnit\Framework\TestCase
2628
{
@@ -72,18 +74,17 @@ protected function setUp()
7274
parent::setUp();
7375
$this->objectManager = Bootstrap::getObjectManager();
7476
$this->setRepository = $this->objectManager->get(AttributeSetRepositoryInterface::class);
75-
$this->groupRepository = Bootstrap::getObjectManager()->create(AttributeGroupRepositoryInterface::class);
77+
$this->groupRepository = $this->objectManager->create(AttributeGroupRepositoryInterface::class);
7678
$this->config = $this->objectManager->get(Config::class);
7779
$this->defaultSetId = (int)$this->config->getEntityType(Product::ENTITY)->getDefaultAttributeSetId();
78-
$this->criteriaBuilder = Bootstrap::getObjectManager()->create(SearchCriteriaBuilder::class);
80+
$this->criteriaBuilder = $this->objectManager->create(SearchCriteriaBuilder::class);
7981
$this->attributeSetResource = $this->objectManager->get(AttributeSetResource::class);
8082
$this->attributeCollectionFactory = $this->objectManager->get(CollectionFactory ::class);
8183
}
8284

8385
/**
8486
* @magentoDataFixture Magento/Eav/_files/attribute_with_options.php
8587
* @dataProvider addAttributeToSetDataProvider
86-
* @magentoDbIsolation enabled
8788
* @param string $groupName
8889
* @param string $attributeCode
8990
* @return void
@@ -140,7 +141,6 @@ public function addAttributeToSetDataProvider(): array
140141
}
141142

142143
/**
143-
* @magentoDbIsolation enabled
144144
* @return void
145145
*/
146146
public function testSaveWithChangedGroupSorting(): void
@@ -163,7 +163,6 @@ public function testSaveWithChangedGroupSorting(): void
163163
}
164164

165165
/**
166-
* @magentoDbIsolation enabled
167166
* @return void
168167
*/
169168
public function testSaveWithRemovedGroup(): void
@@ -188,7 +187,6 @@ public function testSaveWithRemovedGroup(): void
188187
}
189188

190189
/**
191-
* @magentoDbIsolation enabled
192190
* @return void
193191
*/
194192
public function testSaveWithRemovedAttribute(): void

0 commit comments

Comments
 (0)