You are here

public function LingotekNodeBulkTranslationTest::testFormWorksAfterRemovingLanguageWithStatuses in Lingotek Translation 8

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

File

src/Tests/LingotekNodeBulkTranslationTest.php, line 589

Class

LingotekNodeBulkTranslationTest
Tests translating a node 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();
  $this
    ->goToContentBulkManagementForm();

  // There is no link for the Spanish translation.
  $this
    ->assertNoLink('ES');
  $this
    ->assertLink('CA');
}