protected function LingotekInterfaceTranslationTestTrait::assertNoLingotekInterfaceTranslationRequestTranslationLink in Lingotek Translation 3.7.x
Same name and namespace in other branches
- 4.0.x tests/src/Functional/LingotekInterfaceTranslationTestTrait.php \Drupal\Tests\lingotek\Functional\LingotekInterfaceTranslationTestTrait::assertNoLingotekInterfaceTranslationRequestTranslationLink()
- 3.2.x tests/src/Functional/LingotekInterfaceTranslationTestTrait.php \Drupal\Tests\lingotek\Functional\LingotekInterfaceTranslationTestTrait::assertNoLingotekInterfaceTranslationRequestTranslationLink()
- 3.3.x tests/src/Functional/LingotekInterfaceTranslationTestTrait.php \Drupal\Tests\lingotek\Functional\LingotekInterfaceTranslationTestTrait::assertNoLingotekInterfaceTranslationRequestTranslationLink()
- 3.4.x tests/src/Functional/LingotekInterfaceTranslationTestTrait.php \Drupal\Tests\lingotek\Functional\LingotekInterfaceTranslationTestTrait::assertNoLingotekInterfaceTranslationRequestTranslationLink()
- 3.5.x tests/src/Functional/LingotekInterfaceTranslationTestTrait.php \Drupal\Tests\lingotek\Functional\LingotekInterfaceTranslationTestTrait::assertNoLingotekInterfaceTranslationRequestTranslationLink()
- 3.6.x tests/src/Functional/LingotekInterfaceTranslationTestTrait.php \Drupal\Tests\lingotek\Functional\LingotekInterfaceTranslationTestTrait::assertNoLingotekInterfaceTranslationRequestTranslationLink()
- 3.8.x tests/src/Functional/LingotekInterfaceTranslationTestTrait.php \Drupal\Tests\lingotek\Functional\LingotekInterfaceTranslationTestTrait::assertNoLingotekInterfaceTranslationRequestTranslationLink()
5 calls to LingotekInterfaceTranslationTestTrait::assertNoLingotekInterfaceTranslationRequestTranslationLink()
- LingotekInterfaceTranslationTest::testCheckSourceStatusCompletedAndContentMissing in tests/src/ Functional/ LingotekInterfaceTranslationTest.php 
- Tests that all the statuses are set when using the Check Translations action.
- LingotekInterfaceTranslationTest::testClearInterfaceTranslationMetadata in tests/src/ Functional/ LingotekInterfaceTranslationTest.php 
- Tests that a node can be translated using the links on the management page.
- LingotekInterfaceTranslationTest::testDownloadTranslationWithADocumentNotFoundError in tests/src/ Functional/ LingotekInterfaceTranslationTest.php 
- Tests that we manage errors when using the download translation link.
- LingotekInterfaceTranslationTest::testInterfaceTranslationUsingLinks in tests/src/ Functional/ LingotekInterfaceTranslationTest.php 
- Tests that a node can be translated using the links on the management page.
- LingotekInterfaceTranslationTest::testRequestTranslationWithADocumentNotFoundError in tests/src/ Functional/ LingotekInterfaceTranslationTest.php 
- Tests that we manage errors when using the request translation link.
File
- tests/src/ Functional/ LingotekInterfaceTranslationTestTrait.php, line 46 
Class
- LingotekInterfaceTranslationTestTrait
- Trait with Lingotek interface translation test assertion helpers.
Namespace
Drupal\Tests\lingotek\FunctionalCode
protected function assertNoLingotekInterfaceTranslationRequestTranslationLink($component, $locale) {
  $basepath = \Drupal::request()
    ->getBasePath();
  $href = $basepath . '/admin/lingotek/interface-translation/request-translation?component=' . $component . '&locale=' . $locale;
  if ($destination = $this
    ->getDestination()) {
    $href .= $destination;
  }
  $this
    ->assertSession()
    ->linkByHrefNotExists($href, 0);
}