protected function LingotekContentModerationTest::enableModerationThroughUI in Lingotek Translation 3.5.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::enableModerationThroughUI()
- 4.0.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::enableModerationThroughUI()
- 3.0.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::enableModerationThroughUI()
- 3.1.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::enableModerationThroughUI()
- 3.2.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::enableModerationThroughUI()
- 3.3.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::enableModerationThroughUI()
- 3.4.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::enableModerationThroughUI()
- 3.6.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::enableModerationThroughUI()
- 3.7.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::enableModerationThroughUI()
- 3.8.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::enableModerationThroughUI()
Enable moderation for a specified content type, using the UI.
Parameters
string $content_type_id: Machine name.
2 calls to LingotekContentModerationTest::enableModerationThroughUI()
- LingotekContentModerationTest::setUp in tests/
src/ Functional/ LingotekContentModerationTest.php - LingotekContentModerationTest::testDownloadWhenContentModerationWasSetupAfterLingotek in tests/
src/ Functional/ LingotekContentModerationTest.php
File
- tests/
src/ Functional/ LingotekContentModerationTest.php, line 481
Class
- LingotekContentModerationTest
- Tests setting up the integration with content moderation.
Namespace
Drupal\Tests\lingotek\FunctionalCode
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'));
}