You are here

public function LingotekSettingsTabParagraphsIntegrationFormTest::testParagraphsProfileIsNotSelectableUnlessExplicit in Lingotek Translation 3.2.x

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

File

tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php, line 206

Class

LingotekSettingsTabParagraphsIntegrationFormTest
Tests the Lingotek integrations settings form with paragraphs.

Namespace

Drupal\Tests\lingotek\Functional\Form

Code

public function testParagraphsProfileIsNotSelectableUnlessExplicit() {
  $assert_session = $this
    ->assertSession();
  $this
    ->drupalGet('admin/lingotek/settings');
  $this
    ->assertNoFieldByName('paragraph[image_text][profiles]', NULL, 'The profile is not selectable for paragraphs by default.');
  $edit = [
    'contrib[paragraphs][enable_bulk_management]' => 1,
  ];
  $this
    ->drupalPostForm(NULL, $edit, 'Save settings', [], 'lingoteksettings-integrations-form');
  $this
    ->assertText('The configuration options have been saved.');
  $this
    ->assertFieldByName('paragraph[image_text][profiles]', NULL, 'The profile can be assigned to a paragraph if they are managed individually.');
  $this
    ->assertFieldByName('paragraph[image_text][profiles]', Lingotek::PROFILE_DISABLED, 'The default profile is disabled for paragraphs if they are managed individually.');
}