File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
dev/tests/integration/testsuite/Magento/Customer/Model/Metadata/Form Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments