File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
dev/tests/integration/testsuite/Magento/ConfigurableProduct/Controller/Adminhtml/Product/Attribute Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 14
14
use Magento \TestFramework \TestCase \AbstractBackendController ;
15
15
16
16
/**
17
- * Cheks creating attribute options process.
17
+ * Checks creating attribute options process.
18
18
*
19
19
* @see \Magento\ConfigurableProduct\Controller\Adminhtml\Product\Attribute\CreateOptions
20
20
* @magentoAppArea adminhtml
@@ -52,21 +52,21 @@ protected function setUp(): void
52
52
public function testAddAlreadyAddedOption (): void
53
53
{
54
54
$ this ->getRequest ()->setMethod (HttpRequest::METHOD_POST );
55
- $ attr = $ this ->attributeRepository ->get ('test_configurable ' );
55
+ $ attribute = $ this ->attributeRepository ->get ('test_configurable ' );
56
56
$ this ->getRequest ()->setParams ([
57
57
'options ' => [
58
58
[
59
59
'label ' => 'Option 1 ' ,
60
60
'is_new ' => true ,
61
- 'attribute_id ' => (int )$ attr ->getAttributeId (),
61
+ 'attribute_id ' => (int )$ attribute ->getAttributeId (),
62
62
],
63
63
],
64
64
]);
65
65
$ this ->dispatch ('backend/catalog/product_attribute/createOptions ' );
66
66
$ responseBody = $ this ->json ->unserialize ($ this ->getResponse ()->getBody ());
67
67
$ this ->assertNotEmpty ($ responseBody );
68
68
$ this ->assertStringContainsString (
69
- (string )__ ('The value of attribute ""%1"" must be unique ' , $ attr ->getAttributeCode ()),
69
+ (string )__ ('The value of attribute ""%1"" must be unique ' , $ attribute ->getAttributeCode ()),
70
70
$ responseBody ['message ' ]
71
71
);
72
72
}
You can’t perform that action at this time.
0 commit comments