public function MediaBrowserPlusTest::testFolderCreation in Media Browser Plus 7.2
Same name and namespace in other branches
- 7.3 tests/media_browser_plus.test \MediaBrowserPlusTest::testFolderCreation()
Test the ability to create folders.
File
- tests/
media_browser_plus.test, line 176 - Media Browser Plus tests.
Class
- MediaBrowserPlusTest
- Defines media entity creation and management test cases.
Code
public function testFolderCreation() {
$this
->drupalLogin($this->admin_user);
$hierarchy = array(
'root_folder' => array(
$this
->randomName() => array(
$this
->randomName() => array(),
),
$this
->randomName() => array(
$this
->randomName() => array(),
),
),
$this
->randomName() => array(
$this
->randomName() => array(
$this
->randomName() => array(),
),
),
);
$this
->folderCreationHelper($hierarchy);
// Just to have a verbose output.
$this
->drupalGet('admin/content/file/folder_list');
}