You are here

public function LingotekJobManagementTests::testJobTranslationTab in Lingotek Translation 3.7.x

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

File

tests/src/Functional/LingotekJobManagementTests.php, line 119

Class

LingotekJobManagementTests
Tests job management listings.

Namespace

Drupal\Tests\lingotek\Functional

Code

public function testJobTranslationTab() {
  $assert_session = $this
    ->assertSession();
  $this
    ->createContent();
  $this
    ->drupalGet('admin/lingotek');
  $assert_session
    ->linkExists('Translation Jobs');
  $this
    ->clickLink('Translation Jobs');
  $this
    ->assertText('my-test-job-id-1');
  $this
    ->assertText('3 content items, 1 config items');
  $assert_session
    ->linkExists('View translation job', 0);
  $this
    ->assertLinkByHref('/admin/lingotek/job/my-test-job-id-1');
  $this
    ->assertText('my-test-job-id-2');
  $this
    ->assertText('1 content items, 0 config items');
  $assert_session
    ->linkExists('View translation job', 1);
  $assert_session
    ->linkByHrefExists('/admin/lingotek/job/my-test-job-id-2');
}