public function LingotekWorkbenchModerationCustomMenuLinkTest::testCreateCustomMenuLink in Lingotek Translation 4.0.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekWorkbenchModerationCustomMenuLinkTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationCustomMenuLinkTest::testCreateCustomMenuLink()
- 3.1.x tests/src/Functional/LingotekWorkbenchModerationCustomMenuLinkTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationCustomMenuLinkTest::testCreateCustomMenuLink()
- 3.2.x tests/src/Functional/LingotekWorkbenchModerationCustomMenuLinkTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationCustomMenuLinkTest::testCreateCustomMenuLink()
- 3.3.x tests/src/Functional/LingotekWorkbenchModerationCustomMenuLinkTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationCustomMenuLinkTest::testCreateCustomMenuLink()
- 3.4.x tests/src/Functional/LingotekWorkbenchModerationCustomMenuLinkTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationCustomMenuLinkTest::testCreateCustomMenuLink()
- 3.5.x tests/src/Functional/LingotekWorkbenchModerationCustomMenuLinkTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationCustomMenuLinkTest::testCreateCustomMenuLink()
- 3.6.x tests/src/Functional/LingotekWorkbenchModerationCustomMenuLinkTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationCustomMenuLinkTest::testCreateCustomMenuLink()
- 3.7.x tests/src/Functional/LingotekWorkbenchModerationCustomMenuLinkTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationCustomMenuLinkTest::testCreateCustomMenuLink()
- 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 64
Class
- LingotekWorkbenchModerationCustomMenuLinkTest
- Tests setting up the integration with workbench moderation.
Namespace
Drupal\Tests\lingotek\FunctionalCode
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.');
}