You are here

protected function BlazyIoJavaScriptTest::setUp in Blazy 8.2

Overrides BlazyJavaScriptTestBase::setUp

File

tests/src/FunctionalJavascript/BlazyIoJavaScriptTest.php, line 15

Class

BlazyIoJavaScriptTest
Tests the Blazy IO JavaScript using PhantomJS, or Chromedriver.

Namespace

Drupal\Tests\blazy\FunctionalJavascript

Code

protected function setUp() {
  parent::setUp();
  $this->scriptLoader = 'io';

  // Enable IO support.
  $this->container
    ->get('config.factory')
    ->getEditable('blazy.settings')
    ->set('io.enabled', TRUE)
    ->save();
  $this->container
    ->get('config.factory')
    ->getEditable('blazy.settings')
    ->set('decode', TRUE)
    ->save();
  $this->container
    ->get('config.factory')
    ->clearStaticCache();
}