You are here

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

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

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

File

tests/src/Functional/LingotekContentTypeBulkTranslationTest.php, line 395

Class

LingotekContentTypeBulkTranslationTest
Tests translating a config entity 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();

  // Go to the bulk config management page.
  $this
    ->goToConfigBulkManagementForm();

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