You are here

public function LingotekJobManagementTests::testJobTranslationConfigTab in Lingotek Translation 3.6.x

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

File

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

Class

LingotekJobManagementTests
Tests job management listings.

Namespace

Drupal\Tests\lingotek\Functional

Code

public function testJobTranslationConfigTab() {
  $assert_session = $this
    ->assertSession();
  $this
    ->createContent();
  $this
    ->drupalGet('/admin/lingotek/job/my-test-job-id-1');

  // Assert tabs.
  $assert_session
    ->linkExists('Job my-test-job-id-1 Content');
  $assert_session
    ->linkExists('Job my-test-job-id-1 Config');
  $this
    ->clickLink('Job my-test-job-id-1 Config');

  // Assert title block heading.
  $this
    ->assertSame('Job my-test-job-id-1 Configuration', $this
    ->xpath('//h1')[0]
    ->getText());

  // Assert config listed.
  $this
    ->assertText('System information');
  $this
    ->assertNoText('Account settings');

  // Assert the fields are not there.
  $this
    ->assertNoField('filters[wrapper][job]');
  $this
    ->assertNoField('job_id');
}