protected function LingotekNodeBulkFormWithGroupModuleTest::addGroup in Lingotek Translation 3.5.x
Same name and namespace in other branches
- 4.0.x tests/src/Functional/Form/LingotekNodeBulkFormWithGroupModuleTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekNodeBulkFormWithGroupModuleTest::addGroup()
- 3.0.x tests/src/Functional/Form/LingotekNodeBulkFormWithGroupModuleTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekNodeBulkFormWithGroupModuleTest::addGroup()
- 3.1.x tests/src/Functional/Form/LingotekNodeBulkFormWithGroupModuleTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekNodeBulkFormWithGroupModuleTest::addGroup()
- 3.2.x tests/src/Functional/Form/LingotekNodeBulkFormWithGroupModuleTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekNodeBulkFormWithGroupModuleTest::addGroup()
- 3.3.x tests/src/Functional/Form/LingotekNodeBulkFormWithGroupModuleTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekNodeBulkFormWithGroupModuleTest::addGroup()
- 3.4.x tests/src/Functional/Form/LingotekNodeBulkFormWithGroupModuleTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekNodeBulkFormWithGroupModuleTest::addGroup()
- 3.6.x tests/src/Functional/Form/LingotekNodeBulkFormWithGroupModuleTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekNodeBulkFormWithGroupModuleTest::addGroup()
- 3.7.x tests/src/Functional/Form/LingotekNodeBulkFormWithGroupModuleTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekNodeBulkFormWithGroupModuleTest::addGroup()
- 3.8.x tests/src/Functional/Form/LingotekNodeBulkFormWithGroupModuleTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekNodeBulkFormWithGroupModuleTest::addGroup()
Add a group via the UI.
Parameters
string $group_label: The group type label.
$label: The name of the group.
Return value
string The name of the group.
1 call to LingotekNodeBulkFormWithGroupModuleTest::addGroup()
- LingotekNodeBulkFormWithGroupModuleTest::configureGroups in tests/
src/ Functional/ Form/ LingotekNodeBulkFormWithGroupModuleTest.php - Add some test groups.
File
- tests/
src/ Functional/ Form/ LingotekNodeBulkFormWithGroupModuleTest.php, line 290
Class
- LingotekNodeBulkFormWithGroupModuleTest
- Tests the bulk management form when the group module is enabled.
Namespace
Drupal\Tests\lingotek\Functional\FormCode
protected function addGroup($group_label, $label) {
$this
->drupalGet('/admin/group');
$this
->clickLink('Add group');
$edit = [
'label[0][value]' => $label,
];
$this
->drupalPostForm(NULL, $edit, new FormattableMarkup('Create @group and complete your membership', [
'@group' => $group_label,
]));
$this
->drupalPostForm(NULL, [], 'Save group and membership');
return $label;
}