File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed
dev/tests/integration/testsuite/Magento/Eav/Model/Entity Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change 11
11
12
12
/**
13
13
* @magentoAppIsolation enabled
14
- * @magentoDbIsolation enabled
14
+ * @magentoDataFixture Magento/Catalog/_files/category_attribute.php
15
15
*/
16
16
class AttributeLoaderTest extends \PHPUnit_Framework_TestCase
17
17
{
@@ -46,22 +46,6 @@ public function testLoadAllAttributesTheFirstTime(
46
46
/** @var \Magento\Catalog\Model\ResourceModel\Category $categoryResourceModel */
47
47
$ categoryResourceModel = $ this ->objectManager ->get (\Magento \Catalog \Model \ResourceModel \Category::class);
48
48
49
- // Create an attribute not in any attribute set
50
- $ entityTypeId = $ categoryResourceModel ->getEntityType ()->getEntityTypeId ();
51
- /** @var \Magento\Eav\Model\Entity\Attribute $attribute */
52
- $ attribute = $ this ->objectManager ->create (\Magento \Eav \Model \Entity \Attribute::class);
53
- $ attribute ->setData (
54
- [
55
- 'attribute_code ' => 'test_attribute ' ,
56
- 'entity_type_id ' => $ entityTypeId ,
57
- 'backend_type ' => 'varchar ' ,
58
- 'is_required ' => 0 ,
59
- 'is_user_defined ' => 1 ,
60
- 'is_unique ' => 0 ,
61
- ]
62
- );
63
- $ attribute ->save ();
64
-
65
49
// Before load all attributes
66
50
$ attributesByCode = $ categoryResourceModel ->getAttributesByCode ();
67
51
$ attributesByTable = $ categoryResourceModel ->getAttributesByTable ();
You can’t perform that action at this time.
0 commit comments