You are here

protected function PanelsIPETestBase::visitIPERoute in Panels 8.4

Same name and namespace in other branches
  1. 8.3 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.

4 calls to PanelsIPETestBase::visitIPERoute()
PageManagerIntegrationTest::testUserEditSession in panels_ipe/tests/src/FunctionalJavascript/PageManagerIntegrationTest.php
Tests that the IPE editing session is specific to a user.
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 56

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);
}