magento / adobe-stock-integration

Magento Adobe Stock integration Community Project.
Open Software License 3.0
60 stars 92 forks source link

Cover GetAssetListInterface with an integration test #1787

Closed sivaschenko closed 4 years ago

sivaschenko commented 4 years ago

Cover \Magento\AdobeStockAssetApi\Api\GetAssetListInterface with an integration test. The test should be located in the AdobeStockAsset module. To exclude external dependencies for the integration test - the Magento\AdobeStockClientApi\Api\ClientInterface preference should be replaced with a mock in the test setUp. I.e.:

        Bootstrap::getObjectManager()->configure([
            'preferences' => [
                ClientInterface::class => \Magento\AdobeStockAsset\Test\Integration\Model\ClientMock::class
            ]
        ]);
m2-assistant[bot] commented 4 years ago

Hi @sivaschenko. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this


yolouiese commented 4 years ago

@magento I am working on this