File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
dev/tests/integration/testsuite/Magento/Catalog/Model/Product/Option/Type/File Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -111,11 +111,11 @@ public function testExceptionWithoutErrors()
111
111
*/
112
112
public function testValidate ()
113
113
{
114
- $ validateMock = $ this -> createPartialMock (\Zend_Validate:: class, [ ' isValid ' ]);
115
- $ validateMock -> expects ( $ this ->once ())-> method ( ' isValid ' )-> will ( $ this -> returnValue ( true ) );
114
+ //use actual zend class to test changed functionality
115
+ $ validate = $ this ->objectManager -> create (\Zend_Validate::class );
116
116
$ this ->validateFactoryMock ->expects ($ this ->once ())
117
117
->method ('create ' )
118
- ->will ($ this ->returnValue ($ validateMock ));
118
+ ->will ($ this ->returnValue ($ validate ));
119
119
$ this ->assertTrue (
120
120
$ this ->model ->validate (
121
121
$ this ->getOptionValue (),
You can’t perform that action at this time.
0 commit comments