You are here

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

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

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

File

tests/src/Functional/LingotekContentTypeBulkTranslationTest.php, line 1669

Class

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

Namespace

Drupal\Tests\lingotek\Functional

Code

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