protected function LingotekInterfaceTranslationTestTrait::assertLingotekInterfaceTranslationUploadLink in Lingotek Translation 3.6.x
Same name and namespace in other branches
- 4.0.x tests/src/Functional/LingotekInterfaceTranslationTestTrait.php \Drupal\Tests\lingotek\Functional\LingotekInterfaceTranslationTestTrait::assertLingotekInterfaceTranslationUploadLink()
- 3.2.x tests/src/Functional/LingotekInterfaceTranslationTestTrait.php \Drupal\Tests\lingotek\Functional\LingotekInterfaceTranslationTestTrait::assertLingotekInterfaceTranslationUploadLink()
- 3.3.x tests/src/Functional/LingotekInterfaceTranslationTestTrait.php \Drupal\Tests\lingotek\Functional\LingotekInterfaceTranslationTestTrait::assertLingotekInterfaceTranslationUploadLink()
- 3.4.x tests/src/Functional/LingotekInterfaceTranslationTestTrait.php \Drupal\Tests\lingotek\Functional\LingotekInterfaceTranslationTestTrait::assertLingotekInterfaceTranslationUploadLink()
- 3.5.x tests/src/Functional/LingotekInterfaceTranslationTestTrait.php \Drupal\Tests\lingotek\Functional\LingotekInterfaceTranslationTestTrait::assertLingotekInterfaceTranslationUploadLink()
- 3.7.x tests/src/Functional/LingotekInterfaceTranslationTestTrait.php \Drupal\Tests\lingotek\Functional\LingotekInterfaceTranslationTestTrait::assertLingotekInterfaceTranslationUploadLink()
- 3.8.x tests/src/Functional/LingotekInterfaceTranslationTestTrait.php \Drupal\Tests\lingotek\Functional\LingotekInterfaceTranslationTestTrait::assertLingotekInterfaceTranslationUploadLink()
13 calls to LingotekInterfaceTranslationTestTrait::assertLingotekInterfaceTranslationUploadLink()
- LingotekInterfaceTranslationTest::testAutomatedArchivedNotificationInterfaceTranslation in tests/
src/ Functional/ LingotekInterfaceTranslationTest.php - Tests that a node can be translated using the links on the management page.
- LingotekInterfaceTranslationTest::testAutomatedCancelledNotificationInterfaceTranslation in tests/
src/ Functional/ LingotekInterfaceTranslationTest.php - Tests that a node can be translated using the links on the management page.
- LingotekInterfaceTranslationTest::testAutomatedNotificationInterfaceTranslation in tests/
src/ Functional/ LingotekInterfaceTranslationTest.php - Tests that a node can be translated using the links on the management page.
- LingotekInterfaceTranslationTest::testCheckTranslationStatusWithAnError in tests/
src/ Functional/ LingotekInterfaceTranslationTest.php - Tests that we manage errors when using the check translation status link.
- LingotekInterfaceTranslationTest::testClearInterfaceTranslationMetadata in tests/
src/ Functional/ LingotekInterfaceTranslationTest.php - Tests that a node can be translated using the links on the management page.
File
- tests/
src/ Functional/ LingotekInterfaceTranslationTestTrait.php, line 10
Class
- LingotekInterfaceTranslationTestTrait
- Trait with Lingotek interface translation test assertion helpers.
Namespace
Drupal\Tests\lingotek\FunctionalCode
protected function assertLingotekInterfaceTranslationUploadLink($component) {
$basepath = \Drupal::request()
->getBasePath();
$href = $basepath . '/admin/lingotek/interface-translation/upload?component=' . $component;
if ($destination = $this
->getDestination()) {
$href .= $destination;
}
$this
->assertSession()
->linkByHrefExists($href, 0);
}