Your IP : 216.73.216.220


Current Path : /var/www/html/dev/tests/setup-integration/framework/Magento/TestFramework/Workaround/
Upload File :
Current File : /var/www/html/dev/tests/setup-integration/framework/Magento/TestFramework/Workaround/CacheClean.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

namespace Magento\TestFramework\Workaround;

use Magento\TestFramework\Helper\Bootstrap;

/**
 * Deployment config handler.
 *
 * @package Magento\TestFramework\Workaround
 */
class CacheClean
{
    /**
     * Start test.
     *
     * @return void
     */
    public function endTest()
    {
        /** @var \Magento\Framework\App\Cache\Manager $cacheManager */
        $cacheManager = Bootstrap::getObjectManager()->get(\Magento\Framework\App\Cache\Manager::class);
        $types = $cacheManager->getAvailableTypes();
        $cacheManager->clean($types);
    }
}