File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
app/code/Magento/Eav/Test/Unit/Model/Entity/Attribute Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -59,13 +59,14 @@ protected function setUp(): void
59
59
60
60
/**
61
61
* Test to add attribute option
62
+ *
63
+ * @dataProvider optionLabelDataProvider
62
64
*/
63
- public function testAdd ()
65
+ public function testAdd ($ label )
64
66
{
65
67
$ entityType = 42 ;
66
68
$ storeId = 4 ;
67
69
$ attributeCode = 'atrCde ' ;
68
- $ label = 'optionLabel ' ;
69
70
$ storeLabel = 'labelLabel ' ;
70
71
$ sortOder = 'optionSortOrder ' ;
71
72
$ option = [
@@ -121,6 +122,17 @@ public function testAdd()
121
122
);
122
123
}
123
124
125
+ /**
126
+ * @return array
127
+ */
128
+ public function optionLabelDataProvider (): array
129
+ {
130
+ return [
131
+ ['optionLabel ' ],
132
+ ['0 ' ]
133
+ ];
134
+ }
135
+
124
136
/**
125
137
* Test to add attribute option with empty attribute code
126
138
*/
You can’t perform that action at this time.
0 commit comments