public function NewFolderTest::testFolderCreate 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::testFolderCreate()
Test if folder was created.
File
- tests/
src/ Kernel/ Plugin/ ImcePlugin/ NewFolderTest.php, line 115
Class
- NewFolderTest
- Kernel tests for Imce plugins for Imce Plugin NewFolder.
Namespace
Drupal\Tests\imce\Kernel\Plugin\ImcePluginCode
public function testFolderCreate() {
$uriFolder = Imce::joinPaths($this->imceFM->activeFolder
->getUri(), $this->imceFM
->getPost('newfolder'));
$this
->assertTrue(is_string($uriFolder));
$this
->assertTrue(file_exists($uriFolder));
}