You are here

public function Update8201Test::testModuleWeightUpdate in Image Effects 8.2

Tests that the file_mdm module enable is executed correctly.

File

tests/src/Functional/Update/Update8201Test.php, line 26

Class

Update8201Test
Tests the upgrade path for enabling file_mdm and its submodules.

Namespace

Drupal\Tests\image_effects\Functional\Update

Code

public function testModuleWeightUpdate() {
  $this
    ->assertFalse(\Drupal::moduleHandler()
    ->moduleExists('file_mdm'));
  $this
    ->assertFalse(\Drupal::moduleHandler()
    ->moduleExists('file_mdm_exif'));
  $this
    ->assertFalse(\Drupal::moduleHandler()
    ->moduleExists('file_mdm_font'));
  $this
    ->runUpdates();
  $this
    ->assertTrue(\Drupal::moduleHandler()
    ->moduleExists('file_mdm'));
  $this
    ->assertTrue(\Drupal::moduleHandler()
    ->moduleExists('file_mdm_exif'));
  $this
    ->assertTrue(\Drupal::moduleHandler()
    ->moduleExists('file_mdm_font'));
}