public function LingotekSettingsTabParagraphsIntegrationFormTest::testParagraphsProfileIsNotSelectableUnlessExplicit in Lingotek Translation 4.0.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testParagraphsProfileIsNotSelectableUnlessExplicit()
- 3.0.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testParagraphsProfileIsNotSelectableUnlessExplicit()
- 3.1.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testParagraphsProfileIsNotSelectableUnlessExplicit()
- 3.2.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testParagraphsProfileIsNotSelectableUnlessExplicit()
- 3.3.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testParagraphsProfileIsNotSelectableUnlessExplicit()
- 3.4.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testParagraphsProfileIsNotSelectableUnlessExplicit()
- 3.5.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testParagraphsProfileIsNotSelectableUnlessExplicit()
- 3.6.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testParagraphsProfileIsNotSelectableUnlessExplicit()
- 3.7.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testParagraphsProfileIsNotSelectableUnlessExplicit()
- 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\FormCode
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.');
}