You are here

public function ViewExecutableTest::testGetHandlers in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Tests/ViewExecutableTest.php \Drupal\views\Tests\ViewExecutableTest::testGetHandlers()

Tests ViewExecutable::getHandlers().

File

core/modules/views/src/Tests/ViewExecutableTest.php, line 400
Contains \Drupal\views\Tests\ViewExecutableTest.

Class

ViewExecutableTest
Tests the ViewExecutable class.

Namespace

Drupal\views\Tests

Code

public function testGetHandlers() {
  $view = Views::getView('test_executable_displays');
  $view
    ->setDisplay('page_1');
  $view
    ->getHandlers('field', 'page_2');

  // getHandlers() shouldn't change the active display.
  $this
    ->assertEqual('page_1', $view->current_display, "The display shouldn't change after getHandlers()");
}