File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
dev/tests/integration/testsuite/Magento/Customer/Model/Metadata/Form Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ class ImageTest extends \PHPUnit\Framework\TestCase
55
55
/**
56
56
* @inheritDoc
57
57
*/
58
- public function setUp ()
58
+ public function setUp () : void
59
59
{
60
60
$ this ->objectManager = Bootstrap::getObjectManager ();
61
61
$ this ->filesystem = $ this ->objectManager ->get (Filesystem::class);
@@ -157,12 +157,12 @@ public function testProcessCustomerValue()
157
157
* Test for processCustomerValue method with invalid value
158
158
*
159
159
* @magentoAppIsolation enabled
160
- * @expectedException \Magento\Framework\Exception\ValidatorException
161
160
* @throws FileSystemException
162
161
* @throws \ReflectionException
163
162
*/
164
163
public function testProcessCustomerInvalidValue ()
165
164
{
165
+ $ this ->expectException (\Magento \Framework \Exception \ValidatorException::class);
166
166
$ this ->mediaDirectory ->delete ('customer ' );
167
167
$ this ->mediaDirectory ->create ($ this ->mediaDirectory ->getRelativePath ('customer/tmp/ ' ));
168
168
$ tmpFilePath = $ this ->mediaDirectory ->getAbsolutePath ('customer/tmp/ ' . $ this ->fileName );
@@ -197,9 +197,10 @@ public function testProcessCustomerInvalidValue()
197
197
198
198
/**
199
199
* @inheritdoc
200
+ *
200
201
* @throws FileSystemException
201
202
*/
202
- public static function tearDownAfterClass ()
203
+ public static function tearDownAfterClass () : void
203
204
{
204
205
parent ::tearDownAfterClass ();
205
206
$ filesystem = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->get (
You can’t perform that action at this time.
0 commit comments