You are here

protected function BlazyJavaScriptTest::setUp in Blazy 8

Overrides BrowserTestBase::setUp

File

tests/src/FunctionalJavascript/BlazyJavaScriptTest.php, line 35

Class

BlazyJavaScriptTest
Tests the Blazy JavaScript using PhantomJS, or Chromedriver.

Namespace

Drupal\Tests\blazy\FunctionalJavascript

Code

protected function setUp() {
  parent::setUp();
  $this
    ->setUpVariables();
  $this->root = $this->container
    ->get('app.root');
  $this->fileSystem = $this->container
    ->get('file_system');
  $this->entityManager = $this->container
    ->get('entity.manager');
  $this->entityFieldManager = $this->container
    ->get('entity_field.manager');
  $this->formatterPluginManager = $this->container
    ->get('plugin.manager.field.formatter');
  $this->blazyAdmin = $this->container
    ->get('blazy.admin');
  $this->blazyManager = $this->container
    ->get('blazy.manager');
  $this->scriptLoader = 'blazy';
  $this->maxParagraphs = 180;
}