You are here

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

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

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

File

tests/src/Functional/LingotekSystemSiteBulkTranslationTest.php, line 1187

Class

LingotekSystemSiteBulkTranslationTest
Tests translating a config object using the bulk management form.

Namespace

Drupal\Tests\lingotek\Functional

Code

public function testDeleteTranslationUpdatesStatuses() {
  $this
    ->testSystemSiteTranslationUsingActions();
  $this
    ->goToConfigBulkManagementForm();
  $this
    ->assertTargetStatus('DE', Lingotek::STATUS_CURRENT);
  $this
    ->drupalGet('/admin/config/system/site-information/translate');
  $this
    ->clickLink('Delete');
  $this
    ->drupalPostForm(NULL, [], t('Delete'));
  $this
    ->goToConfigBulkManagementForm();
  $this
    ->assertTargetStatus('DE', Lingotek::STATUS_READY);
}