protected function LingotekIntelligenceMetadataTranslationTest::setupGeneralIntelligenceSettings in Lingotek Translation 8.2
Same name and namespace in other branches
- 4.0.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::setupGeneralIntelligenceSettings()
- 3.0.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::setupGeneralIntelligenceSettings()
- 3.1.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::setupGeneralIntelligenceSettings()
- 3.2.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::setupGeneralIntelligenceSettings()
- 3.3.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::setupGeneralIntelligenceSettings()
- 3.4.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::setupGeneralIntelligenceSettings()
- 3.5.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::setupGeneralIntelligenceSettings()
- 3.6.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::setupGeneralIntelligenceSettings()
- 3.7.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::setupGeneralIntelligenceSettings()
- 3.8.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::setupGeneralIntelligenceSettings()
6 calls to LingotekIntelligenceMetadataTranslationTest::setupGeneralIntelligenceSettings()
- LingotekIntelligenceMetadataTranslationTest::testUpdateNodeWithContactEmailAsAuthorSetting in tests/
src/ Functional/ LingotekIntelligenceMetadataTranslationTest.php - LingotekIntelligenceMetadataTranslationTest::testUpdateNodeWithGeneralSettings in tests/
src/ Functional/ LingotekIntelligenceMetadataTranslationTest.php - Tests that a node can be translated.
- LingotekIntelligenceMetadataTranslationTest::testUpdateNodeWithProfileOverride in tests/
src/ Functional/ LingotekIntelligenceMetadataTranslationTest.php - LingotekIntelligenceMetadataTranslationTest::testUploadNodeWithContactEmailAsAuthorSetting in tests/
src/ Functional/ LingotekIntelligenceMetadataTranslationTest.php - LingotekIntelligenceMetadataTranslationTest::testUploadNodeWithGeneralSettings in tests/
src/ Functional/ LingotekIntelligenceMetadataTranslationTest.php - Tests that a node can be translated.
File
- tests/
src/ Functional/ LingotekIntelligenceMetadataTranslationTest.php, line 780
Class
- LingotekIntelligenceMetadataTranslationTest
- Tests if intelligence metadata is used when uploading and updating content.
Namespace
Drupal\Tests\lingotek\FunctionalCode
protected function setupGeneralIntelligenceSettings() {
$this
->drupalGet('admin/lingotek/settings');
$edit = [
'intelligence_metadata[use_author]' => 1,
'intelligence_metadata[use_author_email]' => 1,
'intelligence_metadata[use_contact_email_for_author]' => FALSE,
'intelligence_metadata[use_business_unit]' => 1,
'intelligence_metadata[use_business_division]' => 1,
'intelligence_metadata[use_campaign_id]' => 1,
'intelligence_metadata[use_campaign_rating]' => 1,
'intelligence_metadata[use_channel]' => 1,
'intelligence_metadata[use_contact_name]' => 1,
'intelligence_metadata[use_contact_email]' => 1,
'intelligence_metadata[use_content_description]' => 1,
'intelligence_metadata[use_external_style_id]' => 1,
'intelligence_metadata[use_purchase_order]' => 1,
'intelligence_metadata[use_region]' => 1,
'intelligence_metadata[use_base_domain]' => 1,
'intelligence_metadata[use_reference_url]' => 1,
'intelligence_metadata[default_author_email]' => 'test@example.com',
'intelligence_metadata[business_unit]' => 'General Business Unit',
'intelligence_metadata[business_division]' => 'General Business Division',
'intelligence_metadata[campaign_id]' => 'General Campaign ID',
'intelligence_metadata[campaign_rating]' => 3,
'intelligence_metadata[channel]' => 'General Channel Test',
'intelligence_metadata[contact_name]' => 'General Test Contact Name',
'intelligence_metadata[contact_email]' => 'general@example.com',
'intelligence_metadata[content_description]' => 'General Content description',
'intelligence_metadata[external_style_id]' => 'general-my-style-id',
'intelligence_metadata[purchase_order]' => 'General PO32',
'intelligence_metadata[region]' => 'region2',
];
$this
->drupalPostForm(NULL, $edit, 'Save Lingotek Intelligence Metadata', [], 'lingotekintelligence-metadata-form');
}