You are here

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

Tests \Drupal\ckeditor_media_embed\AssetManager::getPluginsInstallStatuses(<version>).

File

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

Class

AssetManagerTest
Tests the asset manager.

Namespace

Drupal\Tests\ckeditor_media_embed\Unit

Code

public function testGetPluginInstallStatusesAbove411() {
  $plugins = AssetManager::getPlugins('4.11');
  $plugin_count = count($plugins);
  $statuses = AssetManager::getPluginsInstallStatuses('4.11');
  $this
    ->assertCount($plugin_count, $statuses, 'There should be a status for each plugin.');
}