You are here

public function ResizeTest::testPermissiomInfo in IMCE 8.2

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

Test Resize::permissionInfo()

File

tests/src/Kernel/Plugin/ImcePlugin/ResizeTest.php, line 142

Class

ResizeTest
Kernel tests for Imce plugins for Imce Plugin Core.

Namespace

Drupal\Tests\imce\Kernel\Plugin\ImcePlugin

Code

public function testPermissiomInfo() {
  $permissionInfo = $this->resize
    ->permissionInfo();
  $this
    ->assertIsArray($permissionInfo);
  $this
    ->assertTrue(in_array($this
    ->t('Resize images'), $permissionInfo));
}