You are here

public function LingotekFieldBodyBulkTranslationTest::testDeleteTranslationUpdatesStatuses in Lingotek Translation 3.6.x

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

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

File

tests/src/Functional/LingotekFieldBodyBulkTranslationTest.php, line 1194

Class

LingotekFieldBodyBulkTranslationTest
Tests translating a field using the bulk management form.

Namespace

Drupal\Tests\lingotek\Functional

Code

public function testDeleteTranslationUpdatesStatuses() {
  $this
    ->testFieldBodyTranslationUsingActions();
  $this
    ->goToConfigBulkManagementForm('node_fields');
  $this
    ->assertTargetStatus('DE', Lingotek::STATUS_CURRENT);
  $this
    ->drupalGet('/admin/structure/types/manage/article/fields/node.article.body/translate');
  $this
    ->clickLink('Delete');
  $this
    ->drupalPostForm(NULL, [], t('Delete'));
  $this
    ->goToConfigBulkManagementForm('node_fields');
  $this
    ->assertTargetStatus('DE', Lingotek::STATUS_READY);
}