You are here

public function JsCollectionOptimizerTest::setUp in Flysystem 8

Overrides UnitTestCase::setUp

File

tests/src/Unit/Asset/JsCollectionOptimizerTest.php, line 25

Class

JsCollectionOptimizerTest
@coversDefaultClass \Drupal\flysystem\Asset\JsCollectionOptimizer @group flysystem

Namespace

Drupal\Tests\flysystem\Unit\Asset

Code

public function setUp() {
  parent::setUp();
  if (!defined('REQUEST_TIME')) {
    define('REQUEST_TIME', time());
  }
  vfsStream::setup('flysystem');
  if (file_exists('vfs://flysystem/test.js')) {
    unlink('vfs://flysystem/test.js');
  }
}