You are here

public function LingotekNodeBulkTranslationTest::testDeleteTranslationUpdatesStatuses in Lingotek Translation 3.8.x

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

Tests that we update the statuses when a translation is deleted.

File

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

Class

LingotekNodeBulkTranslationTest
Tests translating a node using the bulk management form.

Namespace

Drupal\Tests\lingotek\Functional

Code

public function testDeleteTranslationUpdatesStatuses() {
  $this
    ->testNodeTranslationUsingActionsForMultipleLocales();
  $this
    ->goToContentBulkManagementForm();
  $this
    ->assertTargetStatus('DE', Lingotek::STATUS_CURRENT);
  $this
    ->drupalGet('node/1/translations');
  $this
    ->clickLink('Delete');
  $this
    ->drupalPostForm(NULL, [], t('Delete @language translation', [
    '@language' => ConfigurableLanguage::load('de')
      ->getName(),
  ]));
  $this
    ->goToContentBulkManagementForm();
  $this
    ->assertTargetStatus('DE', Lingotek::STATUS_READY);
}