public function LingotekWorkbenchModerationTest::testUpdateEntityWithAutomaticProfileAndInUploadStateNoStatusChange in Lingotek Translation 3.7.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekWorkbenchModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationTest::testUpdateEntityWithAutomaticProfileAndInUploadStateNoStatusChange()
- 4.0.x tests/src/Functional/LingotekWorkbenchModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationTest::testUpdateEntityWithAutomaticProfileAndInUploadStateNoStatusChange()
- 3.1.x tests/src/Functional/LingotekWorkbenchModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationTest::testUpdateEntityWithAutomaticProfileAndInUploadStateNoStatusChange()
- 3.2.x tests/src/Functional/LingotekWorkbenchModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationTest::testUpdateEntityWithAutomaticProfileAndInUploadStateNoStatusChange()
- 3.3.x tests/src/Functional/LingotekWorkbenchModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationTest::testUpdateEntityWithAutomaticProfileAndInUploadStateNoStatusChange()
- 3.4.x tests/src/Functional/LingotekWorkbenchModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationTest::testUpdateEntityWithAutomaticProfileAndInUploadStateNoStatusChange()
- 3.5.x tests/src/Functional/LingotekWorkbenchModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationTest::testUpdateEntityWithAutomaticProfileAndInUploadStateNoStatusChange()
- 3.6.x tests/src/Functional/LingotekWorkbenchModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationTest::testUpdateEntityWithAutomaticProfileAndInUploadStateNoStatusChange()
- 3.8.x tests/src/Functional/LingotekWorkbenchModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationTest::testUpdateEntityWithAutomaticProfileAndInUploadStateNoStatusChange()
Entity update with automatic profile in upload state does not trigger the upload because there is not content change.
File
- tests/
src/ Functional/ LingotekWorkbenchModerationTest.php, line 205
Class
- LingotekWorkbenchModerationTest
- Tests setting up the integration with workbench moderation.
Namespace
Drupal\Tests\lingotek\FunctionalCode
public function testUpdateEntityWithAutomaticProfileAndInUploadStateNoStatusChange() {
$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
->drupalPostForm('/node/add/article', $edit, t('Save and Create New Draft'));
$this
->assertText('Article Llamas are cool has been created.');
$this
->assertText('Llamas are cool sent to Lingotek successfully.');
$currentStatus = $this
->getSession()
->getPage()
->find('css', 'div[id="edit-current"]');
$this
->assertEqual($currentStatus
->getText(), 'Status Draft');
$this
->drupalPostForm('/node/1/edit', $edit, t('Save and Create New Draft (this translation)'));
$this
->assertText('Article Llamas are cool has been updated.');
$this
->assertText('Llamas are cool was updated and sent to Lingotek successfully.');
$currentStatus = $this
->getSession()
->getPage()
->find('css', 'div[id="edit-current"]');
$this
->assertEqual($currentStatus
->getText(), 'Status Draft');
}