public function LingotekSettingsTabAccountFormTest::testTableWithDefaultProjectWorkflow in Lingotek Translation 4.0.x
Same name and namespace in other branches
- 3.4.x tests/src/Functional/Form/LingotekSettingsTabAccountFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabAccountFormTest::testTableWithDefaultProjectWorkflow()
- 3.5.x tests/src/Functional/Form/LingotekSettingsTabAccountFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabAccountFormTest::testTableWithDefaultProjectWorkflow()
- 3.6.x tests/src/Functional/Form/LingotekSettingsTabAccountFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabAccountFormTest::testTableWithDefaultProjectWorkflow()
- 3.7.x tests/src/Functional/Form/LingotekSettingsTabAccountFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabAccountFormTest::testTableWithDefaultProjectWorkflow()
- 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\FormCode
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)');
}