public function LingotekNodeBulkTranslationTest::testDeleteTranslationUpdatesStatuses in Lingotek Translation 3.5.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::testDeleteTranslationUpdatesStatuses()
- 4.0.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::testDeleteTranslationUpdatesStatuses()
- 3.0.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::testDeleteTranslationUpdatesStatuses()
- 3.1.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::testDeleteTranslationUpdatesStatuses()
- 3.2.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::testDeleteTranslationUpdatesStatuses()
- 3.3.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::testDeleteTranslationUpdatesStatuses()
- 3.4.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::testDeleteTranslationUpdatesStatuses()
- 3.6.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::testDeleteTranslationUpdatesStatuses()
- 3.7.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::testDeleteTranslationUpdatesStatuses()
- 3.8.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 2881
Class
- LingotekNodeBulkTranslationTest
- Tests translating a node using the bulk management form.
Namespace
Drupal\Tests\lingotek\FunctionalCode
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);
}