You are here

public function AssetManagerTest::testPluginIsInstalled in CKEditor Media Embed Plugin 8

Tests \Drupal\ckeditor_media_embed\AssetManager::pluginIsInstalled().

File

tests/src/Unit/AssetManagerTest.php, line 80

Class

AssetManagerTest
Tests the asset manager.

Namespace

Drupal\Tests\ckeditor_media_embed\Unit

Code

public function testPluginIsInstalled() {
  $this
    ->assertTrue(AssetManager::pluginIsInstalled('embed'), 'The embed plugin should be installed.');
  $this
    ->assertFalse(AssetManager::pluginIsInstalled('embedbase'), 'The embedbase plugin should NOT be installed.');
}