public function ImceFolderTest::getRequest in IMCE 8.2
Same name and namespace in other branches
- 8 tests/src/Kernel/ImceFolderTest.php \Drupal\Tests\imce\Kernel\ImceFolderTest::getRequest()
Get the request parameter.
Return value
\Symfony\Component\HttpFoundation\Request The request object.
Overrides KernelTestBasePlugin::getRequest
File
- tests/
src/ Kernel/ ImceFolderTest.php, line 49
Class
- ImceFolderTest
- Kernel tests for ImceFolder.
Namespace
Drupal\Tests\imce\KernelCode
public function getRequest() {
$request = Request::create("/imce", 'POST', []);
$session = new Session();
$session
->set('imce_active_path', '.');
$request
->setSession($session);
return $request;
}