Skip to content

Commit 46a5ae9

Browse files
author
Cari Spruiell
committed
MAGETWO-64047: WebAPI: It's impossible to empty numeric fields after they're set
- fix tests
1 parent 8d2ae8f commit 46a5ae9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

dev/tests/integration/testsuite/Magento/Eav/Model/ResourceModel/UpdateHandlerTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,12 @@ public function getCustomStoreDataProvider()
205205
return [
206206
['description', '', 'not_empty_value', 'not_empty_value'], //0
207207
['description', '', '', null], //1
208-
['description', '', null, null], //2
208+
['description', '', null, 'Description with <b>html tag</b>'], //2
209209
['description', '', false, 'Description with <b>html tag</b>'], //3
210210

211211
['description', 'not_empty_value', 'not_empty_value2', 'not_empty_value2'], //4
212212
['description', 'not_empty_value', '', null], //5
213-
['description', 'not_empty_value', null, null], //6
213+
['description', 'not_empty_value', null, 'Description with <b>html tag</b>'], //6
214214
['description', 'not_empty_value', false, 'Description with <b>html tag</b>'], //7
215215

216216
['description', null, 'not_empty_value', 'not_empty_value'], //8
@@ -219,7 +219,7 @@ public function getCustomStoreDataProvider()
219219

220220
['description', false, 'not_empty_value', 'not_empty_value'], //11
221221
['description', false, '', null], //12
222-
['description', false, null, null], //13
222+
['description', false, null, 'Description with <b>html tag</b>'], //13
223223
];
224224
}
225225

@@ -231,12 +231,12 @@ public function getCustomAttributeDataProvider()
231231
return [
232232
['dropdown_attribute', 0, '', 1, 1], //0
233233
['dropdown_attribute', 0, '', '', null], //1
234-
['dropdown_attribute', 0, '', null, null], //2
234+
['dropdown_attribute', 0, '', null, 0], //2
235235
['dropdown_attribute', 0, '', false, 0], //3
236236

237237
['dropdown_attribute', 0, 1, 2, 2], //4
238238
['dropdown_attribute', 0, 1, '', null], //5
239-
['dropdown_attribute', 0, 1, null, null], //6
239+
['dropdown_attribute', 0, 1, null, 0], //6
240240
['dropdown_attribute', 0, 1, false, 0], //7
241241

242242
['dropdown_attribute', 0, null, 1, 1], //8
@@ -245,11 +245,11 @@ public function getCustomAttributeDataProvider()
245245

246246
['dropdown_attribute', 0, false, 1, 1], //11
247247
['dropdown_attribute', 0, false, '', null], //12
248-
['dropdown_attribute', 0, false, null, null], //13
248+
['dropdown_attribute', 0, false, null, 0], //13
249249

250250
['dropdown_attribute', 0, '-', 1, 1], //14
251251
['dropdown_attribute', 0, '-', '', null], //15
252-
['dropdown_attribute', 0, '-', null, null], //16
252+
['dropdown_attribute', 0, '-', null, 0], //16
253253
['dropdown_attribute', 0, '-', false, 0], //17
254254
];
255255
}

0 commit comments

Comments
 (0)