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 13
13
use PHPUnit \Framework \TestCase ;
14
14
15
15
/**
16
- * Tests for helper swatch attributes for product .
16
+ * Tests for product swatch attribute helper .
17
17
*
18
18
* @see \Magento\Swatches\Helper\Data
19
19
* @magentoDbIsolation enabled
@@ -39,6 +39,7 @@ protected function setUp(): void
39
39
$ this ->objectManager = Bootstrap::getObjectManager ();
40
40
$ this ->helper = $ this ->objectManager ->get (Data::class);
41
41
$ this ->productRepository = $ this ->objectManager ->get (ProductRepositoryInterface::class);
42
+ $ this ->productRepository ->cleanCache ();
42
43
}
43
44
44
45
/**
@@ -48,7 +49,6 @@ protected function setUp(): void
48
49
public function testGetSwatchAttributesAsArray (): void
49
50
{
50
51
$ product = $ this ->productRepository ->get ('simple2 ' );
51
- $ result = $ this ->helper ->getSwatchAttributesAsArray ($ product );
52
- $ this ->assertEquals ([], $ result );
52
+ $ this ->assertEmpty ($ this ->helper ->getSwatchAttributesAsArray ($ product ));
53
53
}
54
54
}
You can’t perform that action at this time.
0 commit comments