protected function LingotekTestBase::assertNoTargetStatus in Lingotek Translation 4.0.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertNoTargetStatus()
- 3.0.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertNoTargetStatus()
- 3.1.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertNoTargetStatus()
- 3.2.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertNoTargetStatus()
- 3.3.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertNoTargetStatus()
- 3.4.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertNoTargetStatus()
- 3.5.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertNoTargetStatus()
- 3.6.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertNoTargetStatus()
- 3.7.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertNoTargetStatus()
- 3.8.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertNoTargetStatus()
Assert that a content target has not the given status.
Parameters
string $language: The target language.
string $status: The status.
11 calls to LingotekTestBase::assertNoTargetStatus()
- LingotekContentTypeBulkTranslationTest::testEditedConfigTranslationUsingLinks in tests/
src/ Functional/ LingotekContentTypeBulkTranslationTest.php - Tests that a config can be translated using the links on the management page.
- LingotekFieldBodyBulkTranslationTest::testEditedConfigTranslationUsingLinks in tests/
src/ Functional/ LingotekFieldBodyBulkTranslationTest.php - Tests that a config can be translated using the links on the management page.
- LingotekFieldBodyBulkTranslationTest::testEditedConfigTranslationUsingLinksInAutomaticUploadMode in tests/
src/ Functional/ LingotekFieldBodyBulkTranslationTest.php - Tests that a config can be translated using the links on the management page.
- LingotekNodeBulkTranslationTest::testCheckAllTranslationsStatusesWithActionWithADocumentNotFoundError in tests/
src/ Functional/ LingotekNodeBulkTranslationTest.php - Tests that we manage errors when using the check all translations statuses action.
- LingotekNodeBulkTranslationTest::testCheckTranslationStatusWithActionWithADocumentNotFoundError in tests/
src/ Functional/ LingotekNodeBulkTranslationTest.php - Tests that we manage errors when using the check translation status action.
File
- tests/
src/ Functional/ LingotekTestBase.php, line 465
Class
- LingotekTestBase
- Base class for Lingotek test. Performs authorization of the account.
Namespace
Drupal\Tests\lingotek\FunctionalCode
protected function assertNoTargetStatus($language, $status) {
$status_target = $this
->xpath("//a[contains(@class,'language-icon') and contains(@class,'target-" . strtolower($status) . "') and contains(text(), '" . strtoupper($language) . "')]");
$this
->assertEqual(count($status_target), 0, 'The target ' . strtoupper($language) . ' has not been marked with status ' . strtolower($status) . '.');
}