You are here

public function LingotekProfileFormTest::testWorkflows in Lingotek Translation 3.5.x

Same name and namespace in other branches
  1. 4.0.x tests/src/Functional/Form/LingotekProfileFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekProfileFormTest::testWorkflows()
  2. 3.4.x tests/src/Functional/Form/LingotekProfileFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekProfileFormTest::testWorkflows()
  3. 3.6.x tests/src/Functional/Form/LingotekProfileFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekProfileFormTest::testWorkflows()
  4. 3.7.x tests/src/Functional/Form/LingotekProfileFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekProfileFormTest::testWorkflows()
  5. 3.8.x tests/src/Functional/Form/LingotekProfileFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekProfileFormTest::testWorkflows()

Tests that both project default and default workflows are shown in the profile form.

File

tests/src/Functional/Form/LingotekProfileFormTest.php, line 122

Class

LingotekProfileFormTest
Tests the Lingotek profile form.

Namespace

Drupal\Tests\lingotek\Functional\Form

Code

public function testWorkflows() {
  $assert_session = $this
    ->assertSession();
  $this
    ->drupalGet('admin/lingotek/settings');
  $this
    ->clickLink(t('Add new Translation Profile'));
  $this
    ->assertFieldByName('workflow');
  $assert_session
    ->optionExists('edit-workflow', 'project_default');
  $assert_session
    ->optionExists('edit-workflow', 'default');
}