You are here

protected function LingotekTestBase::assertNoConfigTargetError in Lingotek Translation 3.0.x

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

Assert that a config target has not been marked as error.

Parameters

string $label: The label of the row.

string $language: The target language.

string $locale: The target locale.

3 calls to LingotekTestBase::assertNoConfigTargetError()
LingotekContentTypeBulkTranslationTest::testTranslationDownloadWithUnrequestedLocales in tests/src/Functional/LingotekContentTypeBulkTranslationTest.php
Tests that unrequested locales are not marked as error when downloading all.
LingotekFieldBodyBulkTranslationTest::testTranslationDownloadWithUnrequestedLocales in tests/src/Functional/LingotekFieldBodyBulkTranslationTest.php
Tests that unrequested locales are not marked as error when downloading all.
LingotekSystemSiteBulkTranslationTest::testTranslationDownloadWithUnrequestedLocales in tests/src/Functional/LingotekSystemSiteBulkTranslationTest.php
Tests that unrequested locales are not marked as error when downloading all.

File

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

Class

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

Namespace

Drupal\Tests\lingotek\Functional

Code

protected function assertNoConfigTargetError($label, $language, $locale) {
  $source_error = $this
    ->xpath("//span[contains(@class,'language-icon') and contains(@class,'target-error')  and ./a[contains(text(), '" . strtoupper($language) . "')]]");
  $this
    ->assertEqual(count($source_error), 0, 'The target ' . strtoupper($language) . ' has not been marked as error.');
  $this
    ->assertNoText($label . ' ' . $locale . ' translation download failed. Please try again.');
}