File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
tests/performance/framework/Magento/TestFramework/Performance
tools/Magento/Tools/Di/Code/Reader
lib/internal/Magento/Framework/App/Test/Unit Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public function execute()
30
30
try {
31
31
$ provider = $ this ->rssManager ->getProvider ($ type );
32
32
} catch (\InvalidArgumentException $ e ) {
33
- throw new NotFoundException ($ e ->getMessage ());
33
+ throw new NotFoundException (__ ( $ e ->getMessage () ));
34
34
}
35
35
36
36
if (!$ provider ->isAllowed ()) {
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public function execute()
30
30
try {
31
31
$ provider = $ this ->rssManager ->getProvider ($ type );
32
32
} catch (\InvalidArgumentException $ e ) {
33
- throw new NotFoundException ($ e ->getMessage ());
33
+ throw new NotFoundException (__ ( $ e ->getMessage () ));
34
34
}
35
35
36
36
if ($ provider ->isAuthRequired () && !$ this ->auth ()) {
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public function cleanupReports()
60
60
} catch (\Magento \Framework \Exception \FileSystemException $ e ) {
61
61
if (file_exists ($ reportDir )) {
62
62
throw new \Magento \Framework \Exception \LocalizedException (
63
- __ ("Cannot cleanup reports directory '%1'. " , $ reportDir )
63
+ new \ Magento \ Framework \ Phrase ("Cannot cleanup reports directory '%1'. " , $ reportDir )
64
64
);
65
65
}
66
66
}
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public function getList($path)
45
45
{
46
46
$ realPath = realpath ($ path );
47
47
if (!(bool )$ realPath ) {
48
- throw new FileSystemException (new \Magento \Framework \Phrase ('Invalid path: %1 ' , $ realPath ));
48
+ throw new FileSystemException (new \Magento \Framework \Phrase ('Invalid path: %1 ' , $ path ));
49
49
}
50
50
51
51
$ recursiveIterator = new \RecursiveIteratorIterator (
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ public function testDispatchedNotFoundException()
120
120
$ this ->router ->expects ($ this ->at (0 ))
121
121
->method ('match ' )
122
122
->with ($ this ->request )
123
- ->will ( $ this -> throwException ( new NotFoundException (__ ('Page not found. ' ) )));
123
+ ->willThrowException ( new NotFoundException (new \ Magento \ Framework \ Phrase ('Page not found. ' )));
124
124
$ this ->router ->expects ($ this ->at (1 ))
125
125
->method ('match ' )
126
126
->with ($ this ->request )
You can’t perform that action at this time.
0 commit comments