You are here

protected function LingotekInterfaceTranslationTestTrait::assertNoLingotekInterfaceTranslationUploadLink in Lingotek Translation 3.7.x

Same name and namespace in other branches
  1. 4.0.x tests/src/Functional/LingotekInterfaceTranslationTestTrait.php \Drupal\Tests\lingotek\Functional\LingotekInterfaceTranslationTestTrait::assertNoLingotekInterfaceTranslationUploadLink()
  2. 3.8.x tests/src/Functional/LingotekInterfaceTranslationTestTrait.php \Drupal\Tests\lingotek\Functional\LingotekInterfaceTranslationTestTrait::assertNoLingotekInterfaceTranslationUploadLink()
1 call to LingotekInterfaceTranslationTestTrait::assertNoLingotekInterfaceTranslationUploadLink()
LingotekInterfaceTranslationTest::testRequestTranslationWithADocumentArchivedError in tests/src/Functional/LingotekInterfaceTranslationTest.php
Tests that we manage errors when using the request translation link.

File

tests/src/Functional/LingotekInterfaceTranslationTestTrait.php, line 19

Class

LingotekInterfaceTranslationTestTrait
Trait with Lingotek interface translation test assertion helpers.

Namespace

Drupal\Tests\lingotek\Functional

Code

protected function assertNoLingotekInterfaceTranslationUploadLink($component) {
  $basepath = \Drupal::request()
    ->getBasePath();
  $href = $basepath . '/admin/lingotek/interface-translation/upload?component=' . $component;
  if ($destination = $this
    ->getDestination()) {
    $href .= $destination;
  }
  $this
    ->assertSession()
    ->linkByHrefNotExists($href, 0);
}