public function LingotekContentModerationTest::testModerationToUploadStateWithAutomaticProfileTriggersUpload in Lingotek Translation 8.2
Same name and namespace in other branches
- 4.0.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::testModerationToUploadStateWithAutomaticProfileTriggersUpload()
- 3.0.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::testModerationToUploadStateWithAutomaticProfileTriggersUpload()
- 3.1.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::testModerationToUploadStateWithAutomaticProfileTriggersUpload()
- 3.2.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::testModerationToUploadStateWithAutomaticProfileTriggersUpload()
- 3.3.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::testModerationToUploadStateWithAutomaticProfileTriggersUpload()
- 3.4.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::testModerationToUploadStateWithAutomaticProfileTriggersUpload()
- 3.5.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::testModerationToUploadStateWithAutomaticProfileTriggersUpload()
- 3.6.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::testModerationToUploadStateWithAutomaticProfileTriggersUpload()
- 3.7.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::testModerationToUploadStateWithAutomaticProfileTriggersUpload()
- 3.8.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::testModerationToUploadStateWithAutomaticProfileTriggersUpload()
File
- tests/
src/ Functional/ LingotekContentModerationTest.php, line 245
Class
- LingotekContentModerationTest
- Tests setting up the integration with content moderation.
Namespace
Drupal\Tests\lingotek\FunctionalCode
public function testModerationToUploadStateWithAutomaticProfileTriggersUpload() {
$this
->configureNeedsReviewAsUploadState();
$edit = [];
$edit['title[0][value]'] = 'Llamas are cool';
$edit['body[0][value]'] = 'Llamas are very cool';
$edit['langcode[0][value]'] = 'en';
$edit['lingotek_translation_management[lingotek_translation_profile]'] = 'automatic';
$this
->saveAsNewDraftNodeForm($edit, 'article');
// Moderate.
$edit = [
'new_state' => 'needs_review',
];
$this
->drupalPostForm(NULL, $edit, 'Apply');
$this
->assertText('The moderation state has been updated.');
$this
->assertText('Llamas are cool sent to Lingotek successfully.');
}