File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
app/code/Magento/Catalog/Test/Unit/Model Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1110,6 +1110,20 @@ public function testSaveWithoutTypeOptions()
1110
1110
$ this ->assertTrue ($ this ->model ->getTypeHasRequiredOptions ());
1111
1111
}
1112
1112
1113
+ /**
1114
+ * Test for save method with provided options data
1115
+ */
1116
+ public function testSaveWithProvidedRequiredOptions ()
1117
+ {
1118
+ $ this ->model ->setData ("has_options " , "1 " );
1119
+ $ this ->model ->setData ("required_options " , "1 " );
1120
+ $ this ->configureSaveTest ();
1121
+ $ this ->model ->beforeSave ();
1122
+ $ this ->model ->afterSave ();
1123
+ $ this ->assertTrue ($ this ->model ->getHasOptions ());
1124
+ $ this ->assertTrue ($ this ->model ->getRequiredOptions ());
1125
+ }
1126
+
1113
1127
public function testGetIsSalableSimple ()
1114
1128
{
1115
1129
$ typeInstanceMock =
You can’t perform that action at this time.
0 commit comments