Skip to content

Commit f262e67

Browse files
committed
MC-38246: Support by Magento Page Builder
1 parent 0f00d84 commit f262e67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/PageBuilder/Test/Unit/Model/ImageContentUploaderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
namespace Magento\PageBuilder\Test\Unit\Model;
99

1010
use Magento\Framework\App\Filesystem\DirectoryList;
11+
use Magento\Framework\Exception\LocalizedException;
1112
use Magento\Framework\Filesystem;
1213
use Magento\Framework\Filesystem\Directory\WriteInterface;
1314
use Magento\PageBuilder\Model\ImageContentUploader;
@@ -74,7 +75,7 @@ protected function setUp(): void
7475
*/
7576
public function testUploadWithException(): void
7677
{
77-
$this->expectException(\InvalidArgumentException::class);
78+
$this->expectException(LocalizedException::class);
7879
$this->expectExceptionMessage('There was an error during file content upload.');
7980

8081
$fileName = 'fileName.file';

0 commit comments

Comments
 (0)