@magentoAppIsolation enabled @magentoDbIsolation enabled @magentoDataFixture Magento/Eav/_files/attribute_for_search.php
Definition at line 17 of file ConfigTest.php.
◆ setUp()
◆ testGetAttribute()
Definition at line 99 of file ConfigTest.php.
104 $this->assertEquals(
'attribute_for_search_1',
$attribute1->getAttributeCode());
105 $this->assertEquals(
'varchar',
$attribute1->getBackendType());
106 $this->assertEquals(1,
$attribute1->getIsRequired());
107 $this->assertEquals(1,
$attribute1->getIsUserDefined());
108 $this->assertEquals(0,
$attribute1->getIsUnique());
◆ testGetAttributes()
Definition at line 77 of file ConfigTest.php.
81 $attributes1 = $this->config->getAttributes(
$entityType);
82 $expectedAttributeCodes = [
83 'attribute_for_search_1',
84 'attribute_for_search_2',
85 'attribute_for_search_3',
86 'attribute_for_search_4',
87 'attribute_for_search_5',
89 $this->assertEquals(count($expectedAttributeCodes), count($attributes1));
95 $attributes2 = $this->config->getAttributes(
$entityType);
96 $this->assertEquals($attributes1, $attributes2);
◆ testGetEntityAttributeCodes()
testGetEntityAttributeCodes |
( |
| ) |
|
Definition at line 30 of file ConfigTest.php.
34 $entityAttributeCodes1 = $this->config->getEntityAttributeCodes(
$entityType);
37 'attribute_for_search_1',
38 'attribute_for_search_2',
39 'attribute_for_search_3',
40 'attribute_for_search_4',
41 'attribute_for_search_5',
43 $entityAttributeCodes1
46 $entityAttributeCodes2 = $this->config->getEntityAttributeCodes(
$entityType);
47 $this->assertEquals($entityAttributeCodes1, $entityAttributeCodes2);
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/integration/testsuite/Magento/Eav/Model/ConfigTest.php