public function ViewExecutableTest::testGetHandlers in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/tests/src/Kernel/ViewExecutableTest.php \Drupal\Tests\views\Kernel\ViewExecutableTest::testGetHandlers()
Tests ViewExecutable::getHandlers().
File
- core/
modules/ views/ tests/ src/ Kernel/ ViewExecutableTest.php, line 421
Class
- ViewExecutableTest
- Tests the ViewExecutable class.
Namespace
Drupal\Tests\views\KernelCode
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()");
}