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