You are here

public function LingotekContentTypeBulkTranslationTest::testFormWorksAfterRemovingLanguageWithStatuses in Lingotek Translation 8

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

File

src/Tests/LingotekContentTypeBulkTranslationTest.php, line 390

Class

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

Namespace

Drupal\lingotek\Tests

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');
}