You are here

public function LingotekSettingsTabAccountFormTest::testTableWithDefaultProjectWorkflow in Lingotek Translation 3.4.x

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

Test the table has and displays the project default option for workflows

File

tests/src/Functional/Form/LingotekSettingsTabAccountFormTest.php, line 79

Class

LingotekSettingsTabAccountFormTest
Tests the Lingotek account settings form.

Namespace

Drupal\Tests\lingotek\Functional\Form

Code

public function testTableWithDefaultProjectWorkflow() {
  $this
    ->drupalGet('admin/lingotek/settings');
  $this
    ->clickLink('Edit defaults');
  $edit = [
    'workflow' => 'project_default',
  ];
  $this
    ->drupalPostForm(NULL, $edit, 'Save configuration');
  $this
    ->assertTableValue('workflow', 'Project Default (project_default)');
}