You are here

protected function PanelsIPETestBase::visitIPERoute in Panels 8.3

Same name and namespace in other branches
  1. 8.4 panels_ipe/tests/src/FunctionalJavascript/PanelsIPETestBase.php \Drupal\Tests\panels_ipe\FunctionalJavascript\PanelsIPETestBase::visitIPERoute()

Visits the test route and sets an appropriate window size for IPE.

3 calls to PanelsIPETestBase::visitIPERoute()
PanelsIPETestBase::testIPEAddBlock in panels_ipe/tests/src/FunctionalJavascript/PanelsIPETestBase.php
Tests that adding a block with default configuration works.
PanelsIPETestBase::testIPEChangeLayout in panels_ipe/tests/src/FunctionalJavascript/PanelsIPETestBase.php
Tests that changing layout from one (default) to two columns works.
PanelsIPETestBase::testIPEIsLoaded in panels_ipe/tests/src/FunctionalJavascript/PanelsIPETestBase.php
Tests that the IPE is loaded on the current test route.

File

panels_ipe/tests/src/FunctionalJavascript/PanelsIPETestBase.php, line 60

Class

PanelsIPETestBase
Base class which runs through standard Panels IPE test routines.

Namespace

Drupal\Tests\panels_ipe\FunctionalJavascript

Code

protected function visitIPERoute() {
  $this
    ->drupalGet($this->test_route);

  // Set the window size to ensure that IPE elements are visible.
  call_user_func_array([
    $this
      ->getSession(),
    'resizeWindow',
  ], $this->window_size);
}