File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/MediaGallery/Test/Unit/Model/Keyword/Command Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \MediaGallery \Test \Unit \Model \Keyword \Command ;
9
9
10
+ use Magento \Framework \Exception \IntegrationException ;
10
11
use Magento \MediaGallery \Model \Keyword \Command \GetAssetKeywords ;
11
12
use Magento \MediaGalleryApi \Api \Data \KeywordInterface ;
12
13
use Magento \MediaGalleryApi \Api \Data \KeywordInterfaceFactory ;
13
14
use Magento \Framework \App \ResourceConnection ;
14
15
use Magento \Framework \DB \Adapter \AdapterInterface ;
15
16
use Magento \Framework \DB \Select ;
16
- use Magento \Framework \Exception \NotFoundException ;
17
17
use PHPUnit \Framework \MockObject \MockObject ;
18
18
use PHPUnit \Framework \TestCase ;
19
19
use Psr \Log \LoggerInterface ;
@@ -93,7 +93,7 @@ public function casesProvider(): array
93
93
/**
94
94
* Test case when an error occured during get data request.
95
95
*
96
- * @throws NotFoundException
96
+ * @throws IntegrationException
97
97
*/
98
98
public function testNotFoundBecauseOfError (): void
99
99
{
@@ -103,7 +103,7 @@ public function testNotFoundBecauseOfError(): void
103
103
->method ('getConnection ' )
104
104
->willThrowException ((new \Exception ()));
105
105
106
- $ this ->expectException (NotFoundException ::class);
106
+ $ this ->expectException (IntegrationException ::class);
107
107
$ this ->logger ->expects ($ this ->once ())
108
108
->method ('critical ' )
109
109
->willReturnSelf ();
You can’t perform that action at this time.
0 commit comments