function ViewExecutableFactoryTest::testGetNoRequest
Same name and namespace in other branches
- 11.x core/modules/views/tests/src/Unit/ViewExecutableFactoryTest.php \Drupal\Tests\views\Unit\ViewExecutableFactoryTest::testGetNoRequest()
Tests the get method when current request is null.
@legacy-covers ::get
File
-
core/
modules/ views/ tests/ src/ Unit/ ViewExecutableFactoryTest.php, line 119
Class
Namespace
Drupal\Tests\views\UnitCode
public function testGetNoRequest() : void {
$executable = $this->viewExecutableFactory
->get($this->view);
$this->assertInstanceOf('Drupal\\views\\ViewExecutable', $executable);
$this->assertSame($executable->getUser(), $this->user);
$this->assertSame($executable->getRequest(), NULL);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.