21
21
22
22
/**
23
23
* Provides tests for attribute set model saving.
24
+ *
25
+ * @magentoDbIsolation enabled
24
26
*/
25
27
class SetTest extends \PHPUnit \Framework \TestCase
26
28
{
@@ -72,18 +74,17 @@ protected function setUp()
72
74
parent ::setUp ();
73
75
$ this ->objectManager = Bootstrap::getObjectManager ();
74
76
$ this ->setRepository = $ this ->objectManager ->get (AttributeSetRepositoryInterface::class);
75
- $ this ->groupRepository = Bootstrap:: getObjectManager () ->create (AttributeGroupRepositoryInterface::class);
77
+ $ this ->groupRepository = $ this -> objectManager ->create (AttributeGroupRepositoryInterface::class);
76
78
$ this ->config = $ this ->objectManager ->get (Config::class);
77
79
$ 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);
79
81
$ this ->attributeSetResource = $ this ->objectManager ->get (AttributeSetResource::class);
80
82
$ this ->attributeCollectionFactory = $ this ->objectManager ->get (CollectionFactory ::class);
81
83
}
82
84
83
85
/**
84
86
* @magentoDataFixture Magento/Eav/_files/attribute_with_options.php
85
87
* @dataProvider addAttributeToSetDataProvider
86
- * @magentoDbIsolation enabled
87
88
* @param string $groupName
88
89
* @param string $attributeCode
89
90
* @return void
@@ -140,7 +141,6 @@ public function addAttributeToSetDataProvider(): array
140
141
}
141
142
142
143
/**
143
- * @magentoDbIsolation enabled
144
144
* @return void
145
145
*/
146
146
public function testSaveWithChangedGroupSorting (): void
@@ -163,7 +163,6 @@ public function testSaveWithChangedGroupSorting(): void
163
163
}
164
164
165
165
/**
166
- * @magentoDbIsolation enabled
167
166
* @return void
168
167
*/
169
168
public function testSaveWithRemovedGroup (): void
@@ -188,7 +187,6 @@ public function testSaveWithRemovedGroup(): void
188
187
}
189
188
190
189
/**
191
- * @magentoDbIsolation enabled
192
190
* @return void
193
191
*/
194
192
public function testSaveWithRemovedAttribute (): void
0 commit comments