File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
dev/tests/integration/testsuite/Magento/Swatches/Helper Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1313use 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}
You can’t perform that action at this time.
0 commit comments