You are here

public function LingotekModuleInstallationTest::testModuleWeightAgainstContentTranslation in Lingotek Translation 3.4.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/LingotekModuleInstallationTest.php \Drupal\Tests\lingotek\Functional\LingotekModuleInstallationTest::testModuleWeightAgainstContentTranslation()
  2. 4.0.x tests/src/Functional/LingotekModuleInstallationTest.php \Drupal\Tests\lingotek\Functional\LingotekModuleInstallationTest::testModuleWeightAgainstContentTranslation()
  3. 3.0.x tests/src/Functional/LingotekModuleInstallationTest.php \Drupal\Tests\lingotek\Functional\LingotekModuleInstallationTest::testModuleWeightAgainstContentTranslation()
  4. 3.1.x tests/src/Functional/LingotekModuleInstallationTest.php \Drupal\Tests\lingotek\Functional\LingotekModuleInstallationTest::testModuleWeightAgainstContentTranslation()
  5. 3.2.x tests/src/Functional/LingotekModuleInstallationTest.php \Drupal\Tests\lingotek\Functional\LingotekModuleInstallationTest::testModuleWeightAgainstContentTranslation()
  6. 3.3.x tests/src/Functional/LingotekModuleInstallationTest.php \Drupal\Tests\lingotek\Functional\LingotekModuleInstallationTest::testModuleWeightAgainstContentTranslation()
  7. 3.5.x tests/src/Functional/LingotekModuleInstallationTest.php \Drupal\Tests\lingotek\Functional\LingotekModuleInstallationTest::testModuleWeightAgainstContentTranslation()
  8. 3.6.x tests/src/Functional/LingotekModuleInstallationTest.php \Drupal\Tests\lingotek\Functional\LingotekModuleInstallationTest::testModuleWeightAgainstContentTranslation()
  9. 3.7.x tests/src/Functional/LingotekModuleInstallationTest.php \Drupal\Tests\lingotek\Functional\LingotekModuleInstallationTest::testModuleWeightAgainstContentTranslation()
  10. 3.8.x tests/src/Functional/LingotekModuleInstallationTest.php \Drupal\Tests\lingotek\Functional\LingotekModuleInstallationTest::testModuleWeightAgainstContentTranslation()

Tests that the weight of the module is higher than content_translation.

File

tests/src/Functional/LingotekModuleInstallationTest.php, line 47

Class

LingotekModuleInstallationTest
Tests that the module can be enabled.

Namespace

Drupal\Tests\lingotek\Functional

Code

public function testModuleWeightAgainstContentTranslation() {
  $this
    ->testEnableModule();
  $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.');
}