function ViewAjaxControllerTest::setUpMockCurrentPath
Reinitializes the current path as a mock object.
3 calls to ViewAjaxControllerTest::setUpMockCurrentPath()
- ViewAjaxControllerTest::testAjaxView in core/
modules/ views/ tests/ src/ Unit/ Controller/ ViewAjaxControllerTest.php - Tests a valid view without arguments pagers etc.
- ViewAjaxControllerTest::testAjaxViewViewPathNoSlash in core/
modules/ views/ tests/ src/ Unit/ Controller/ ViewAjaxControllerTest.php - Tests a valid view with a view_path with no slash.
- ViewAjaxControllerTest::testInvalidPath in core/
modules/ views/ tests/ src/ Unit/ Controller/ ViewAjaxControllerTest.php - Tests a valid view without arguments pagers etc.
File
-
core/
modules/ views/ tests/ src/ Unit/ Controller/ ViewAjaxControllerTest.php, line 173
Class
Namespace
Drupal\Tests\views\Unit\ControllerCode
protected function setUpMockCurrentPath() : void {
$this->currentPath = $this->createMock(CurrentPathStack::class);
$reflection = new \ReflectionProperty($this->viewAjaxController, 'currentPath');
$reflection->setValue($this->viewAjaxController, $this->currentPath);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.