You are here

public function LingotekModuleWeightUpdate8201Test::testModuleWeightUpdate in Lingotek Translation 8.2

Tests that the module weight update is executed correctly.

File

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

Class

LingotekModuleWeightUpdate8201Test
Tests the upgrade path for updating the module weight.

Namespace

Drupal\Tests\lingotek\Functional\Update

Code

public function testModuleWeightUpdate() {
  $this
    ->runUpdates();
  $extension_config = $this
    ->config('core.extension');
  $content_translation_weight = $extension_config
    ->get('module.content_translation');
  $lingotek_weight = $extension_config
    ->get('module.lingotek');
  $this
    ->assertTrue($lingotek_weight > $content_translation_weight, 'Lingotek weight is higher than content_translation.');
}