public function LingotekJobManagementTests::testJobTranslationContentTab in Lingotek Translation 8.2
Same name and namespace in other branches
- 4.0.x tests/src/Functional/LingotekJobManagementTests.php \Drupal\Tests\lingotek\Functional\LingotekJobManagementTests::testJobTranslationContentTab()
- 3.0.x tests/src/Functional/LingotekJobManagementTests.php \Drupal\Tests\lingotek\Functional\LingotekJobManagementTests::testJobTranslationContentTab()
- 3.1.x tests/src/Functional/LingotekJobManagementTests.php \Drupal\Tests\lingotek\Functional\LingotekJobManagementTests::testJobTranslationContentTab()
- 3.2.x tests/src/Functional/LingotekJobManagementTests.php \Drupal\Tests\lingotek\Functional\LingotekJobManagementTests::testJobTranslationContentTab()
- 3.3.x tests/src/Functional/LingotekJobManagementTests.php \Drupal\Tests\lingotek\Functional\LingotekJobManagementTests::testJobTranslationContentTab()
- 3.4.x tests/src/Functional/LingotekJobManagementTests.php \Drupal\Tests\lingotek\Functional\LingotekJobManagementTests::testJobTranslationContentTab()
- 3.5.x tests/src/Functional/LingotekJobManagementTests.php \Drupal\Tests\lingotek\Functional\LingotekJobManagementTests::testJobTranslationContentTab()
- 3.6.x tests/src/Functional/LingotekJobManagementTests.php \Drupal\Tests\lingotek\Functional\LingotekJobManagementTests::testJobTranslationContentTab()
- 3.7.x tests/src/Functional/LingotekJobManagementTests.php \Drupal\Tests\lingotek\Functional\LingotekJobManagementTests::testJobTranslationContentTab()
- 3.8.x tests/src/Functional/LingotekJobManagementTests.php \Drupal\Tests\lingotek\Functional\LingotekJobManagementTests::testJobTranslationContentTab()
1 call to LingotekJobManagementTests::testJobTranslationContentTab()
- LingotekJobManagementTests::testJobTranslationContentTabHasOwnFilter in tests/src/ Functional/ LingotekJobManagementTests.php 
File
- tests/src/ Functional/ LingotekJobManagementTests.php, line 136 
Class
- LingotekJobManagementTests
- Tests job management listings.
Namespace
Drupal\Tests\lingotek\FunctionalCode
public function testJobTranslationContentTab() {
  $this
    ->createContent();
  $this
    ->drupalGet('/admin/lingotek/job/my-test-job-id-1');
  // Assert tabs.
  $this
    ->assertLink('Job my-test-job-id-1 Content');
  $this
    ->assertLink('Job my-test-job-id-1 Config');
  // Assert title block heading.
  $this
    ->assertSame('Job my-test-job-id-1 Content', $this
    ->xpath('//h1')[0]
    ->getText());
  // Assert content listed.
  $this
    ->assertLink('Llamas are cool');
  $this
    ->assertSourceStatus('en', Lingotek::STATUS_IMPORTING);
  $this
    ->assertTargetStatus('es', Lingotek::STATUS_REQUEST);
  $this
    ->assertTargetStatus('es-ar', Lingotek::STATUS_REQUEST);
  $this
    ->assertLink('Camelid');
  $this
    ->assertLink('Herbivorous');
  $this
    ->assertNoLink('Awesome');
  // Assert the fields are not there.
  $this
    ->assertNoField('show_advanced');
  $this
    ->assertNoField('job_id');
}