Skip to content

Commit 4502681

Browse files
committed
MC-34231: 2.4.0-develop-pr33 PR stabilization
1 parent 52a3eb1 commit 4502681

File tree

1 file changed

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

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class ImageTest extends \PHPUnit\Framework\TestCase
5555
/**
5656
* @inheritDoc
5757
*/
58-
public function setUp()
58+
public function setUp() : void
5959
{
6060
$this->objectManager = Bootstrap::getObjectManager();
6161
$this->filesystem = $this->objectManager->get(Filesystem::class);
@@ -157,12 +157,12 @@ 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(\Magento\Framework\Exception\ValidatorException::class);
166166
$this->mediaDirectory->delete('customer');
167167
$this->mediaDirectory->create($this->mediaDirectory->getRelativePath('customer/tmp/'));
168168
$tmpFilePath = $this->mediaDirectory->getAbsolutePath('customer/tmp/' . $this->fileName);
@@ -197,9 +197,10 @@ public function testProcessCustomerInvalidValue()
197197

198198
/**
199199
* @inheritdoc
200+
*
200201
* @throws FileSystemException
201202
*/
202-
public static function tearDownAfterClass()
203+
public static function tearDownAfterClass() : void
203204
{
204205
parent::tearDownAfterClass();
205206
$filesystem = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(

0 commit comments

Comments
 (0)