You are here

protected function LingotekIntelligenceMetadataTranslationTest::disableIntelligenceMetadata in Lingotek Translation 3.3.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::disableIntelligenceMetadata()
  2. 4.0.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::disableIntelligenceMetadata()
  3. 3.0.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::disableIntelligenceMetadata()
  4. 3.1.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::disableIntelligenceMetadata()
  5. 3.2.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::disableIntelligenceMetadata()
  6. 3.4.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::disableIntelligenceMetadata()
  7. 3.5.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::disableIntelligenceMetadata()
  8. 3.6.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::disableIntelligenceMetadata()
  9. 3.7.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::disableIntelligenceMetadata()
  10. 3.8.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::disableIntelligenceMetadata()
2 calls to LingotekIntelligenceMetadataTranslationTest::disableIntelligenceMetadata()
LingotekIntelligenceMetadataTranslationTest::testUpdateNodeWithNoSettings in tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php
LingotekIntelligenceMetadataTranslationTest::testUploadNodeWithNoSettings in tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php
Tests that a node can be translated.

File

tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php, line 715

Class

LingotekIntelligenceMetadataTranslationTest
Tests if intelligence metadata is used when uploading and updating content.

Namespace

Drupal\Tests\lingotek\Functional

Code

protected function disableIntelligenceMetadata() {

  // Check we can store the values.
  $edit = [
    'intelligence_metadata[use_author]' => FALSE,
    'intelligence_metadata[use_author_email]' => FALSE,
    'intelligence_metadata[use_contact_email_for_author]' => FALSE,
    'intelligence_metadata[use_business_unit]' => FALSE,
    'intelligence_metadata[use_business_division]' => FALSE,
    'intelligence_metadata[use_campaign_id]' => FALSE,
    'intelligence_metadata[use_campaign_rating]' => FALSE,
    'intelligence_metadata[use_channel]' => FALSE,
    'intelligence_metadata[use_contact_name]' => FALSE,
    'intelligence_metadata[use_contact_email]' => FALSE,
    'intelligence_metadata[use_content_description]' => FALSE,
    'intelligence_metadata[use_external_style_id]' => FALSE,
    'intelligence_metadata[use_purchase_order]' => FALSE,
    'intelligence_metadata[use_region]' => FALSE,
    'intelligence_metadata[use_base_domain]' => FALSE,
    'intelligence_metadata[use_reference_url]' => FALSE,
  ];
  $this
    ->drupalPostForm(NULL, $edit, 'Save Lingotek Intelligence Metadata', [], 'lingotekintelligence-metadata-form');
}