Skip to content

Commit 39a0888

Browse files
author
Serhii Bohomaz
committed
MC-39704: Create automated test for: "Register simple product instead of Configurable"
1 parent 17330ff commit 39a0888

File tree

1 file changed

+3
-3
lines changed
  • dev/tests/integration/testsuite/Magento/Swatches/Helper

1 file changed

+3
-3
lines changed

dev/tests/integration/testsuite/Magento/Swatches/Helper/DataTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use PHPUnit\Framework\TestCase;
1414

1515
/**
16-
* Tests for helper swatch attributes for product.
16+
* Tests for product swatch attribute helper.
1717
*
1818
* @see \Magento\Swatches\Helper\Data
1919
* @magentoDbIsolation enabled
@@ -39,6 +39,7 @@ protected function setUp(): void
3939
$this->objectManager = Bootstrap::getObjectManager();
4040
$this->helper = $this->objectManager->get(Data::class);
4141
$this->productRepository = $this->objectManager->get(ProductRepositoryInterface::class);
42+
$this->productRepository->cleanCache();
4243
}
4344

4445
/**
@@ -48,7 +49,6 @@ protected function setUp(): void
4849
public function testGetSwatchAttributesAsArray(): void
4950
{
5051
$product = $this->productRepository->get('simple2');
51-
$result = $this->helper->getSwatchAttributesAsArray($product);
52-
$this->assertEquals([], $result);
52+
$this->assertEmpty($this->helper->getSwatchAttributesAsArray($product));
5353
}
5454
}

0 commit comments

Comments
 (0)