You are here

public function LingotekWorkbenchModerationCustomMenuLinkTest::testCreateCustomMenuLink in Lingotek Translation 8.2

Same name and namespace in other branches
  1. 4.0.x tests/src/Functional/LingotekWorkbenchModerationCustomMenuLinkTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationCustomMenuLinkTest::testCreateCustomMenuLink()
  2. 3.1.x tests/src/Functional/LingotekWorkbenchModerationCustomMenuLinkTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationCustomMenuLinkTest::testCreateCustomMenuLink()
  3. 3.2.x tests/src/Functional/LingotekWorkbenchModerationCustomMenuLinkTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationCustomMenuLinkTest::testCreateCustomMenuLink()
  4. 3.3.x tests/src/Functional/LingotekWorkbenchModerationCustomMenuLinkTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationCustomMenuLinkTest::testCreateCustomMenuLink()
  5. 3.4.x tests/src/Functional/LingotekWorkbenchModerationCustomMenuLinkTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationCustomMenuLinkTest::testCreateCustomMenuLink()
  6. 3.5.x tests/src/Functional/LingotekWorkbenchModerationCustomMenuLinkTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationCustomMenuLinkTest::testCreateCustomMenuLink()
  7. 3.6.x tests/src/Functional/LingotekWorkbenchModerationCustomMenuLinkTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationCustomMenuLinkTest::testCreateCustomMenuLink()
  8. 3.7.x tests/src/Functional/LingotekWorkbenchModerationCustomMenuLinkTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationCustomMenuLinkTest::testCreateCustomMenuLink()
  9. 3.8.x tests/src/Functional/LingotekWorkbenchModerationCustomMenuLinkTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationCustomMenuLinkTest::testCreateCustomMenuLink()

Entity creation with automatic profile in upload state triggers the upload.

File

tests/src/Functional/LingotekWorkbenchModerationCustomMenuLinkTest.php, line 67

Class

LingotekWorkbenchModerationCustomMenuLinkTest
Tests setting up the integration with workbench moderation.

Namespace

Drupal\Tests\lingotek\Functional

Code

public function testCreateCustomMenuLink() {
  $edit = [];
  $edit['title[0][value]'] = 'Llamas are cool';
  $edit['description[0][value]'] = 'Llamas are very cool';
  $edit['link[0][uri]'] = '<front>';
  $edit['langcode[0][value]'] = 'en';
  $edit['lingotek_translation_management[lingotek_translation_profile]'] = 'automatic';
  $this
    ->drupalPostForm('/admin/structure/menu/manage/main/add', $edit, t('Save'));
  $this
    ->assertText('The menu link has been saved.');
  $this
    ->assertText('Llamas are cool sent to Lingotek successfully.');
}