public function NewFolderTest::getRequest in IMCE 8
Same name and namespace in other branches
- 8.2 tests/src/Kernel/Plugin/ImcePlugin/NewFolderTest.php \Drupal\Tests\imce\Kernel\Plugin\ImcePlugin\NewFolderTest::getRequest()
Get the request parameter.
Return value
\Symfony\Component\HttpFoundation\Request The request object.
Overrides KernelTestBasePlugin::getRequest
File
- tests/
src/ Kernel/ Plugin/ ImcePlugin/ NewFolderTest.php, line 61
Class
- NewFolderTest
- Kernel tests for Imce plugins for Imce Plugin NewFolder.
Namespace
Drupal\Tests\imce\Kernel\Plugin\ImcePluginCode
public function getRequest() {
$request = Request::create("/imce", 'POST', [
'jsop' => 'newfolder',
'token' => 'LLuA1R0aUOzoduSJkJxN5aoHVdJnQk8LbTBgdivOU4Y',
'active_path' => '.',
'newfolder' => 'folder-test',
]);
$session = new Session();
$session
->set('imce_active_path', '.');
$request
->setSession($session);
return $request;
}