You are here

public function DeleteTest::testPermissiomInfo in IMCE 8

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

Test Delete::permissionInfo()

File

tests/src/Kernel/Plugin/ImcePlugin/DeleteTest.php, line 116

Class

DeleteTest
Kernel tests for Imce plugins for Imce Plugin Core.

Namespace

Drupal\Tests\imce\Kernel\Plugin\ImcePlugin

Code

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