You are here

public function ImceTest::testGetDependencies in IMCE 8.2

Same name and namespace in other branches
  1. 8 tests/src/Kernel/Plugin/CKEditorPlugin/ImceTest.php \Drupal\Tests\imce\Kernel\Plugin\CKEditorPlugin\ImceTest::testGetDependencies()

Test getDependencies().

File

tests/src/Kernel/Plugin/CKEditorPlugin/ImceTest.php, line 51

Class

ImceTest
Kernel tests for Imce plugins for CKEditor.

Namespace

Drupal\Tests\imce\Kernel\Plugin\CKEditorPlugin

Code

public function testGetDependencies() {
  $dependencies = $this->imce
    ->getDependencies($this
    ->createMock(Editor::class));
  $this
    ->assertIsArray($dependencies);
  $this
    ->assertTrue(in_array('drupalimage', $dependencies));
  $this
    ->assertTrue(in_array('drupalimagecaption', $dependencies));
}