File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
app/code/Magento/PageBuilder/Test/Unit/Model Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 8
8
namespace Magento \PageBuilder \Test \Unit \Model ;
9
9
10
10
use Magento \Framework \App \Filesystem \DirectoryList ;
11
+ use Magento \Framework \Exception \LocalizedException ;
11
12
use Magento \Framework \Filesystem ;
12
13
use Magento \Framework \Filesystem \Directory \WriteInterface ;
13
14
use Magento \PageBuilder \Model \ImageContentUploader ;
@@ -74,7 +75,7 @@ protected function setUp(): void
74
75
*/
75
76
public function testUploadWithException (): void
76
77
{
77
- $ this ->expectException (\InvalidArgumentException ::class);
78
+ $ this ->expectException (LocalizedException ::class);
78
79
$ this ->expectExceptionMessage ('There was an error during file content upload. ' );
79
80
80
81
$ fileName = 'fileName.file ' ;
You can’t perform that action at this time.
0 commit comments