Skip to content

Commit e694954

Browse files
committed
Fix exception in test
1 parent 3a82b4a commit e694954

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/MediaGallery/Test/Unit/Model/Keyword/Command/GetAssetKeywordsTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77

88
namespace Magento\MediaGallery\Test\Unit\Model\Keyword\Command;
99

10+
use Magento\Framework\Exception\IntegrationException;
1011
use Magento\MediaGallery\Model\Keyword\Command\GetAssetKeywords;
1112
use Magento\MediaGalleryApi\Api\Data\KeywordInterface;
1213
use Magento\MediaGalleryApi\Api\Data\KeywordInterfaceFactory;
1314
use Magento\Framework\App\ResourceConnection;
1415
use Magento\Framework\DB\Adapter\AdapterInterface;
1516
use Magento\Framework\DB\Select;
16-
use Magento\Framework\Exception\NotFoundException;
1717
use PHPUnit\Framework\MockObject\MockObject;
1818
use PHPUnit\Framework\TestCase;
1919
use Psr\Log\LoggerInterface;
@@ -93,7 +93,7 @@ public function casesProvider(): array
9393
/**
9494
* Test case when an error occured during get data request.
9595
*
96-
* @throws NotFoundException
96+
* @throws IntegrationException
9797
*/
9898
public function testNotFoundBecauseOfError(): void
9999
{
@@ -103,7 +103,7 @@ public function testNotFoundBecauseOfError(): void
103103
->method('getConnection')
104104
->willThrowException((new \Exception()));
105105

106-
$this->expectException(NotFoundException::class);
106+
$this->expectException(IntegrationException::class);
107107
$this->logger->expects($this->once())
108108
->method('critical')
109109
->willReturnSelf();

0 commit comments

Comments
 (0)