File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
app/code/Magento/Theme/Test/Unit/Model/Design/Backend Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -111,10 +111,24 @@ public function testAfterSave($callNumber, $oldValue)
111
111
$ this ->assertInstanceOf (get_class ($ this ->model ), $ this ->model ->afterSave ());
112
112
}
113
113
114
- public function testGetValue ()
114
+ /**
115
+ * @param string|null $value
116
+ * @param string $expectedResult
117
+ * @return void
118
+ * @dataProvider getValueDataProvider
119
+ */
120
+ public function testGetValue ($ value , $ expectedResult )
121
+ {
122
+ $ this ->model ->setValue ($ value );
123
+ $ this ->assertEquals ($ expectedResult , $ this ->model ->getValue ());
124
+ }
125
+
126
+ public function getValueDataProvider ()
115
127
{
116
- $ this ->model ->setValue (null );
117
- $ this ->assertEquals ('' , $ this ->model ->getValue ());
128
+ return [
129
+ [null , '' ],
130
+ ['value ' , 'value ' ]
131
+ ];
118
132
}
119
133
120
134
public function afterSaveDataProvider ()
You can’t perform that action at this time.
0 commit comments