Skip to content

Commit 4bd5311

Browse files
committed
MAGETWO-90719: Exception is thrown when you re-order a product with custom options from Admin.
- Fix integration test to cover changes in Zend framework
1 parent b22e64d commit 4bd5311

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Model/Product/Option/Type/File/ValidatorInfoTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ public function testExceptionWithoutErrors()
111111
*/
112112
public function testValidate()
113113
{
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 );
116116
$this->validateFactoryMock->expects($this->once())
117117
->method('create')
118-
->will($this->returnValue($validateMock));
118+
->will($this->returnValue($validate));
119119
$this->assertTrue(
120120
$this->model->validate(
121121
$this->getOptionValue(),

0 commit comments

Comments
 (0)