You are here

public function LingotekContentEntityGetProfileHookTest::testProfileWithNullProfile in Lingotek Translation 3.6.x

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

Tests that a profile can be overridden before uploading.

File

tests/src/Functional/LingotekContentEntityGetProfileHookTest.php, line 227

Class

LingotekContentEntityGetProfileHookTest
Tests the hooks for getting content entity associated profile.

Namespace

Drupal\Tests\lingotek\Functional

Code

public function testProfileWithNullProfile() {
  $this
    ->saveLingotekContentTranslationSettings([
    'node' => [
      'null_profile' => [
        'profiles' => 'manual',
        'fields' => [
          'title' => 1,
        ],
      ],
    ],
  ]);

  // Create a node with group 1 profile.
  $edit = [];
  $edit['title[0][value]'] = 'Llamas are cool';
  $edit['langcode[0][value]'] = 'en';
  $this
    ->saveAndPublishNodeForm($edit, 'null_profile');
  $this
    ->goToContentBulkManagementForm();
}