public function KernelTestBasePlugin::getImceFM in IMCE 8
Same name and namespace in other branches
- 8.2 tests/src/Kernel/Plugin/KernelTestBasePlugin.php \Drupal\Tests\imce\Kernel\Plugin\KernelTestBasePlugin::getImceFM()
The Imce file manager.
Return value
\Drupal\imce\ImceFM Return the file manager.
6 calls to KernelTestBasePlugin::getImceFM()
- CoreTest::setUp in tests/
src/ Kernel/ Plugin/ ImcePlugin/ CoreTest.php - DeleteTest::setUp in tests/
src/ Kernel/ Plugin/ ImcePlugin/ DeleteTest.php - ImceFolderTest::setUp in tests/
src/ Kernel/ ImceFolderTest.php - NewFolderTest::setUp in tests/
src/ Kernel/ Plugin/ ImcePlugin/ NewFolderTest.php - ResizeTest::setUp in tests/
src/ Kernel/ Plugin/ ImcePlugin/ ResizeTest.php
File
- tests/
src/ Kernel/ Plugin/ KernelTestBasePlugin.php, line 62
Class
- KernelTestBasePlugin
- The abstract class base to imce kernel tests.
Namespace
Drupal\Tests\imce\Kernel\PluginCode
public function getImceFM() {
$imceFM = Imce::userFM($this->container
->get('current_user'), NULL, $this
->getRequest());
$imceFM
->setConf("root_uri", "public://");
$imceFM
->setConf("root_url", "/sites/default/files");
return $imceFM;
}