You are here

public function CoreTest::testPermissionInfo in IMCE 8

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

Test Core::permissionInfo().

File

tests/src/Kernel/Plugin/ImcePlugin/CoreTest.php, line 112

Class

CoreTest
Kernel tests for Imce plugins for Imce Plugin Core.

Namespace

Drupal\Tests\imce\Kernel\Plugin\ImcePlugin

Code

public function testPermissionInfo() {
  $permissionInfo = $this->core
    ->permissionInfo();
  $this
    ->assertTrue(is_array($permissionInfo));
  $this
    ->assertTrue(in_array('Browse files', $permissionInfo));
  $this
    ->assertTrue(in_array('Browse subfolders', $permissionInfo));
}