Skip to content

Commit bf646df

Browse files
Igor Melnikovbuskamuza
authored andcommitted
MAGETWO-59440: Refactor Module_Eav
Introducing SerializerInterface
1 parent f234642 commit bf646df

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

dev/tests/integration/testsuite/Magento/Eav/Model/ConfigTest.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Magento\Eav\Model\Config;
99
use Magento\TestFramework\ObjectManager;
1010
use Magento\TestFramework\Helper\Bootstrap;
11+
use Magento\TestFramework\Helper\CacheCleaner;
1112

1213
class ConfigTest extends \PHPUnit_Framework_TestCase
1314
{
@@ -30,20 +31,10 @@ protected function setUp()
3031
public function testGetEntityAttributeCodes()
3132
{
3233
$entityType = 'catalog_product';
33-
$this->cleanAllCache();
34+
CacheCleaner::cleanAll();
3435
$this->assertEquals(
3536
$this->config->getEntityAttributeCodes($entityType),
3637
$this->config->getEntityAttributeCodes($entityType)
3738
);
3839
}
39-
40-
private function cleanAllCache()
41-
{
42-
/** @var \Magento\Framework\App\Cache\Frontend\Pool $cachePool */
43-
$cachePool = $this->objectManager->get(\Magento\Framework\App\Cache\Frontend\Pool::class);
44-
/** @var \Magento\Framework\Cache\FrontendInterface $cacheType */
45-
foreach ($cachePool as $cacheType) {
46-
$cacheType->getBackend()->clean();
47-
}
48-
}
4940
}

0 commit comments

Comments
 (0)