Skip to content

Commit 7e9592b

Browse files
Merge branch 'MC-41153' into 2.3.7-develop-2.3-develop-sync-030921
2 parents 53c102e + 90c6235 commit 7e9592b

File tree

1 file changed

+4
-1
lines changed
  • dev/tests/integration/testsuite/Magento/Customer/Model/Metadata/Form

1 file changed

+4
-1
lines changed

dev/tests/integration/testsuite/Magento/Customer/Model/Metadata/Form/ImageTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,15 @@ public function testProcessCustomerValue()
157157
* Test for processCustomerValue method with invalid value
158158
*
159159
* @magentoAppIsolation enabled
160-
* @expectedException \Magento\Framework\Exception\ValidatorException
161160
* @throws FileSystemException
162161
* @throws \ReflectionException
163162
*/
164163
public function testProcessCustomerInvalidValue()
165164
{
165+
$this->expectException(
166+
\Magento\Framework\Exception\ValidatorException::class
167+
);
168+
166169
$this->mediaDirectory->delete('customer');
167170
$this->mediaDirectory->create($this->mediaDirectory->getRelativePath('customer/tmp/'));
168171
$tmpFilePath = $this->mediaDirectory->getAbsolutePath('customer/tmp/' . $this->fileName);

0 commit comments

Comments
 (0)