You are here

protected function LingotekTestBase::assertNoTargetStatus in Lingotek Translation 3.2.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertNoTargetStatus()
  2. 4.0.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertNoTargetStatus()
  3. 3.0.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertNoTargetStatus()
  4. 3.1.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertNoTargetStatus()
  5. 3.3.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertNoTargetStatus()
  6. 3.4.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertNoTargetStatus()
  7. 3.5.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertNoTargetStatus()
  8. 3.6.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertNoTargetStatus()
  9. 3.7.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertNoTargetStatus()
  10. 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.

8 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::testEditedNodeTranslationUsingLinks in tests/src/Functional/LingotekNodeBulkTranslationTest.php
Tests that a node can be translated using the links on the management page.
LingotekNodeBulkTranslationTest::testEditedNodeTranslationUsingLinksInAutomaticUploadsMode in tests/src/Functional/LingotekNodeBulkTranslationTest.php
Tests that a node can be translated using the links on the management page.

... See full list

File

tests/src/Functional/LingotekTestBase.php, line 444

Class

LingotekTestBase
Base class for Lingotek test. Performs authorization of the account.

Namespace

Drupal\Tests\lingotek\Functional

Code

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) . '.');
}