Skip to content

Commit

Permalink
[17] Read API :: Integration tests :: Customer* #55
Browse files Browse the repository at this point in the history
  • Loading branch information
skovalenk committed Jun 16, 2020
1 parent 6216e89 commit e2d40f6
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ClientAdapterTest extends TestCase
/**
* @inheritdoc
*/
protected function setUp()
protected function setUp(): void
{
parent::setUp();

Expand All @@ -90,7 +90,7 @@ protected function setUp()
/**
* @inheritdoc
*/
protected function tearDown()
protected function tearDown(): void
{
$this->storageDDL->deleteDataSource($this->state->getCurrentDataSourceName(['scope']));
}
Expand Down Expand Up @@ -135,6 +135,8 @@ public function testBulkInsert(): void
*/
public function testBulkInsertWithWrongMappingType(): void
{
$this->expectExceptionMessage('Error occurred while bulk insert');
$this->expectException(\Magento\Framework\Exception\BulkException::class);
$productBuilder = $this->getSimpleProductData();
$productBuilder['sku'] = 'test-sku-default-site-123';
$productData = $productBuilder;
Expand Down Expand Up @@ -163,6 +165,8 @@ public function testBulkInsertWithWrongMappingType(): void
*/
public function testNotFoundIndex()
{
$this->expectException(\Magento\Framework\Exception\NotFoundException::class);
$this->expectExceptionMessage('\'product\' type document with id \'111\' not found in index \'not_found_index\'.');
$this->storageQuery->getEntry(
'not_found_index',
'product',
Expand Down Expand Up @@ -193,6 +197,8 @@ public function testNotFoundItem()
*/
public function testStorageException()
{
$this->expectException(\Magento\Framework\Exception\RuntimeException::class);
$this->expectExceptionMessage('Storage error');
$this->storageQuery->getEntries(
$this->state->getAliasName(),
'product',
Expand Down

0 comments on commit e2d40f6

Please sign in to comment.