You are here

public function MediaBrowserPlusTest::testFolderCreation in Media Browser Plus 7.2

Same name and namespace in other branches
  1. 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');
}