protected function LingotekNodeBulkFormWithContentModerationTest::enableModerationThroughUI in Lingotek Translation 4.0.x
Same name and namespace in other branches
- 3.4.x tests/src/Functional/Form/LingotekNodeBulkFormWithContentModerationTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekNodeBulkFormWithContentModerationTest::enableModerationThroughUI()
- 3.5.x tests/src/Functional/Form/LingotekNodeBulkFormWithContentModerationTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekNodeBulkFormWithContentModerationTest::enableModerationThroughUI()
- 3.6.x tests/src/Functional/Form/LingotekNodeBulkFormWithContentModerationTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekNodeBulkFormWithContentModerationTest::enableModerationThroughUI()
- 3.7.x tests/src/Functional/Form/LingotekNodeBulkFormWithContentModerationTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekNodeBulkFormWithContentModerationTest::enableModerationThroughUI()
- 3.8.x tests/src/Functional/Form/LingotekNodeBulkFormWithContentModerationTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekNodeBulkFormWithContentModerationTest::enableModerationThroughUI()
Enable moderation for a specified content type, using the UI.
Parameters
string $content_type_id: Machine name.
1 call to LingotekNodeBulkFormWithContentModerationTest::enableModerationThroughUI()
- LingotekNodeBulkFormWithContentModerationTest::setUp in tests/
src/ Functional/ Form/ LingotekNodeBulkFormWithContentModerationTest.php
File
- tests/
src/ Functional/ Form/ LingotekNodeBulkFormWithContentModerationTest.php, line 130
Class
- LingotekNodeBulkFormWithContentModerationTest
- Tests the bulk management form.
Namespace
Drupal\Tests\lingotek\Functional\FormCode
protected function enableModerationThroughUI($content_type_id) {
$this
->drupalGet('/admin/config/workflow/workflows/manage/editorial/type/node');
$this
->assertFieldByName("bundles[{$content_type_id}]");
$edit["bundles[{$content_type_id}]"] = TRUE;
$this
->drupalPostForm(NULL, $edit, t('Save'));
}