You are here

public function UploadTest::testPermissionInfo in IMCE 8

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

Test Upload::permissionInfo()

File

tests/src/Kernel/Plugin/ImcePlugin/UploadTest.php, line 79

Class

UploadTest
Kernel tests for Imce plugins for Imce Plugin Core.

Namespace

Drupal\Tests\imce\Kernel\Plugin\ImcePlugin

Code

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