Skip to content

Commit df658fe

Browse files
author
Joan He
committed
MAGETWO-64216: Add integration test of \Magento\Eav\Model\Entity\AttributeLoader
1 parent a637cfb commit df658fe

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

dev/tests/integration/testsuite/Magento/Eav/Model/Entity/AttributeLoaderTest.php

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
/**
1313
* @magentoAppIsolation enabled
14-
* @magentoDbIsolation enabled
14+
* @magentoDataFixture Magento/Catalog/_files/category_attribute.php
1515
*/
1616
class AttributeLoaderTest extends \PHPUnit_Framework_TestCase
1717
{
@@ -46,22 +46,6 @@ public function testLoadAllAttributesTheFirstTime(
4646
/** @var \Magento\Catalog\Model\ResourceModel\Category $categoryResourceModel */
4747
$categoryResourceModel = $this->objectManager->get(\Magento\Catalog\Model\ResourceModel\Category::class);
4848

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-
6549
// Before load all attributes
6650
$attributesByCode = $categoryResourceModel->getAttributesByCode();
6751
$attributesByTable = $categoryResourceModel->getAttributesByTable();

0 commit comments

Comments
 (0)