You are here

public function LingotekInterfaceTranslationTest::testFormWorksAfterRemovingLanguageWithStatuses in Lingotek Translation 4.0.x

Same name and namespace in other branches
  1. 3.2.x tests/src/Functional/LingotekInterfaceTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekInterfaceTranslationTest::testFormWorksAfterRemovingLanguageWithStatuses()
  2. 3.3.x tests/src/Functional/LingotekInterfaceTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekInterfaceTranslationTest::testFormWorksAfterRemovingLanguageWithStatuses()
  3. 3.4.x tests/src/Functional/LingotekInterfaceTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekInterfaceTranslationTest::testFormWorksAfterRemovingLanguageWithStatuses()
  4. 3.5.x tests/src/Functional/LingotekInterfaceTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekInterfaceTranslationTest::testFormWorksAfterRemovingLanguageWithStatuses()
  5. 3.6.x tests/src/Functional/LingotekInterfaceTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekInterfaceTranslationTest::testFormWorksAfterRemovingLanguageWithStatuses()
  6. 3.7.x tests/src/Functional/LingotekInterfaceTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekInterfaceTranslationTest::testFormWorksAfterRemovingLanguageWithStatuses()
  7. 3.8.x tests/src/Functional/LingotekInterfaceTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekInterfaceTranslationTest::testFormWorksAfterRemovingLanguageWithStatuses()

Tests that a config can be translated using the links on the management page.

File

tests/src/Functional/LingotekInterfaceTranslationTest.php, line 297

Class

LingotekInterfaceTranslationTest
Tests translating the user interface using the Lingotek form.

Namespace

Drupal\Tests\lingotek\Functional

Code

public function testFormWorksAfterRemovingLanguageWithStatuses() {
  $assert_session = $this
    ->assertSession();

  // We need a language added and requested.
  $this
    ->testAddingLanguageAllowsRequesting();

  // Delete a language.
  ConfigurableLanguage::load('es')
    ->delete();
  $this
    ->goToInterfaceTranslationManagementForm();

  // There is no link for the Spanish translation.
  $assert_session
    ->linkNotExists('ES');
  $assert_session
    ->linkExists('CA');
}