@@ -104,6 +104,7 @@ protected function getModel()
104
104
'resultPageFactory ' => $ this ->resultPageFactoryMock ,
105
105
'resultJsonFactory ' => $ this ->resultJsonFactoryMock ,
106
106
'layoutFactory ' => $ this ->layoutFactoryMock ,
107
+ 'multipleAttributeList ' => ['select ' => 'option ' ]
107
108
]);
108
109
}
109
110
@@ -152,20 +153,21 @@ public function testExecute()
152
153
* @dataProvider provideUniqueData
153
154
* @param array $options
154
155
* @param boolean $isError
156
+ * @throws \Magento\Framework\Exception\NotFoundException
155
157
*/
156
158
public function testUniqueValidation (array $ options , $ isError )
157
159
{
158
- $ countFunctionCalls = ($ isError ) ? 5 : 4 ;
160
+ $ countFunctionCalls = ($ isError ) ? 6 : 5 ;
159
161
$ this ->requestMock ->expects ($ this ->exactly ($ countFunctionCalls ))
160
162
->method ('getParam ' )
161
163
->willReturnMap ([
162
- ['frontend_label ' , null , ' test_frontend_label ' ],
164
+ ['frontend_label ' , null , null ],
163
165
['attribute_code ' , null , "test_attribute_code " ],
164
166
['new_attribute_set_name ' , null , 'test_attribute_set_name ' ],
165
167
['option ' , null , $ options ],
166
168
['message_key ' , null , Validate::DEFAULT_MESSAGE_KEY ]
167
169
]);
168
-
170
+
169
171
$ this ->objectManagerMock ->expects ($ this ->once ())
170
172
->method ('create ' )
171
173
->willReturn ($ this ->attributeMock );
0 commit comments