You are here

public function LingotekNodeBulkTranslationTest::testFormWorksAfterRemovingLanguageWithStatuses in Lingotek Translation 3.6.x

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

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

File

tests/src/Functional/LingotekNodeBulkTranslationTest.php, line 785

Class

LingotekNodeBulkTranslationTest
Tests translating a node using the bulk management 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
    ->goToContentBulkManagementForm();

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