File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
app/code/Magento/Catalog/Test/Unit/Model Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1113,6 +1113,21 @@ public function testSaveWithProvidedRequiredOptions()
1113
1113
$ this ->assertTrue ($ this ->model ->getRequiredOptions ());
1114
1114
}
1115
1115
1116
+ /**
1117
+ * Test for save method with provided options settled via magic method
1118
+ */
1119
+ public function testSaveWithProvidedRequiredOptionsValue ()
1120
+ {
1121
+ $ this ->model ->setHasOptions ("1 " );
1122
+ $ this ->model ->setRequiredOptions ("1 " );
1123
+ $ this ->model ->setData ("options " , null );
1124
+ $ this ->configureSaveTest ();
1125
+ $ this ->model ->beforeSave ();
1126
+ $ this ->model ->afterSave ();
1127
+ $ this ->assertTrue ($ this ->model ->getHasOptions ());
1128
+ $ this ->assertTrue ($ this ->model ->getRequiredOptions ());
1129
+ }
1130
+
1116
1131
public function testGetIsSalableSimple ()
1117
1132
{
1118
1133
$ typeInstanceMock =
You can’t perform that action at this time.
0 commit comments