File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
dev/tests/integration/testsuite/Magento/Eav/Model Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 88use Magento \Eav \Model \Config ;
99use Magento \TestFramework \ObjectManager ;
1010use Magento \TestFramework \Helper \Bootstrap ;
11+ use Magento \TestFramework \Helper \CacheCleaner ;
1112
1213class 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}
You can’t perform that action at this time.
0 commit comments