You are here

public function NewFolderTest::testPermissiomInfo in IMCE 8

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/Plugin/ImcePlugin/NewFolderTest.php \Drupal\Tests\imce\Kernel\Plugin\ImcePlugin\NewFolderTest::testPermissiomInfo()

Test to NewFolder::permissionInfo().

File

tests/src/Kernel/Plugin/ImcePlugin/NewFolderTest.php, line 106

Class

NewFolderTest
Kernel tests for Imce plugins for Imce Plugin NewFolder.

Namespace

Drupal\Tests\imce\Kernel\Plugin\ImcePlugin

Code

public function testPermissiomInfo() {
  $permissionInfo = $this->newFolder
    ->permissionInfo();
  $this
    ->assertTrue(is_array($permissionInfo));
  $this
    ->assertTrue(in_array('Create subfolders', $permissionInfo));
}