You are here

protected function LingotekNodeBulkFormWithContentModerationTest::enableModerationThroughUI in Lingotek Translation 3.5.x

Same name and namespace in other branches
  1. 4.0.x tests/src/Functional/Form/LingotekNodeBulkFormWithContentModerationTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekNodeBulkFormWithContentModerationTest::enableModerationThroughUI()
  2. 3.4.x tests/src/Functional/Form/LingotekNodeBulkFormWithContentModerationTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekNodeBulkFormWithContentModerationTest::enableModerationThroughUI()
  3. 3.6.x tests/src/Functional/Form/LingotekNodeBulkFormWithContentModerationTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekNodeBulkFormWithContentModerationTest::enableModerationThroughUI()
  4. 3.7.x tests/src/Functional/Form/LingotekNodeBulkFormWithContentModerationTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekNodeBulkFormWithContentModerationTest::enableModerationThroughUI()
  5. 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\Form

Code

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'));
}