AssetManagerTest\Controller\ConsoleControllerTest::setUp PHP Method

setUp() public method

public setUp ( )
    public function setUp()
    {
        require_once __DIR__ . '/../../_files/JSMin.inc';
        $config = array('filters' => array(self::$assetName => array(array('filter' => 'JSMin'))));
        $assetFilterManager = new AssetFilterManager($config['filters']);
        $assetCacheManager = $this->getAssetCacheManager();
        $resolver = $this->getResolver(__DIR__ . '/../../_files/require-jquery.js');
        $assetManager = new AssetManager($resolver, $config);
        $assetManager->setAssetFilterManager($assetFilterManager);
        $assetManager->setAssetCacheManager($assetCacheManager);
        $this->request = new ConsoleRequest();
        $this->routeMatch = $this->createRouteMatch(['controller' => 'console']);
        $this->event = new MvcEvent();
        $this->event->setRouteMatch($this->routeMatch);
        $this->controller = new ConsoleController($this->getMock(AdapterInterface::class), $assetManager, array());
        $this->controller->setEvent($this->event);
    }