You are here

public function LingotekContentTypeBulkTranslationTest::testFormWorksAfterRemovingLanguageWithStatuses in Lingotek Translation 8.2

Same name and namespace in other branches
  1. 4.0.x tests/src/Functional/LingotekContentTypeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkTranslationTest::testFormWorksAfterRemovingLanguageWithStatuses()
  2. 3.0.x tests/src/Functional/LingotekContentTypeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkTranslationTest::testFormWorksAfterRemovingLanguageWithStatuses()
  3. 3.1.x tests/src/Functional/LingotekContentTypeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkTranslationTest::testFormWorksAfterRemovingLanguageWithStatuses()
  4. 3.2.x tests/src/Functional/LingotekContentTypeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkTranslationTest::testFormWorksAfterRemovingLanguageWithStatuses()
  5. 3.3.x tests/src/Functional/LingotekContentTypeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkTranslationTest::testFormWorksAfterRemovingLanguageWithStatuses()
  6. 3.4.x tests/src/Functional/LingotekContentTypeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkTranslationTest::testFormWorksAfterRemovingLanguageWithStatuses()
  7. 3.5.x tests/src/Functional/LingotekContentTypeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkTranslationTest::testFormWorksAfterRemovingLanguageWithStatuses()
  8. 3.6.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 369

Class

LingotekContentTypeBulkTranslationTest
Tests translating a config entity using the bulk management form.

Namespace

Drupal\Tests\lingotek\Functional

Code

public function testFormWorksAfterRemovingLanguageWithStatuses() {

  // 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.
  $this
    ->assertNoLink('ES');
  $this
    ->assertLink('CA');
}