public function LingotekSettingsTabParagraphsIntegrationFormTest::testBulkTabCanBeDeactivated in Lingotek Translation 3.5.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testBulkTabCanBeDeactivated()
- 4.0.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testBulkTabCanBeDeactivated()
- 3.0.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testBulkTabCanBeDeactivated()
- 3.1.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testBulkTabCanBeDeactivated()
- 3.2.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testBulkTabCanBeDeactivated()
- 3.3.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testBulkTabCanBeDeactivated()
- 3.4.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testBulkTabCanBeDeactivated()
- 3.6.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testBulkTabCanBeDeactivated()
- 3.7.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testBulkTabCanBeDeactivated()
- 3.8.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testBulkTabCanBeDeactivated()
Test that we can disable the tab for paragraphs in bulk management form.
1 call to LingotekSettingsTabParagraphsIntegrationFormTest::testBulkTabCanBeDeactivated()
- LingotekSettingsTabParagraphsIntegrationFormTest::testOtherBulkTabsAreShownAfterDeactivating in tests/
src/ Functional/ Form/ LingotekSettingsTabParagraphsIntegrationFormTest.php - Test that all tabs are shown.
File
- tests/
src/ Functional/ Form/ LingotekSettingsTabParagraphsIntegrationFormTest.php, line 155
Class
- LingotekSettingsTabParagraphsIntegrationFormTest
- Tests the Lingotek integrations settings form with paragraphs.
Namespace
Drupal\Tests\lingotek\Functional\FormCode
public function testBulkTabCanBeDeactivated() {
$assert_session = $this
->assertSession();
// Activate the settings tab.
$this
->testBulkTabCanBeActivated();
// Disable the settings tab.
$this
->drupalGet('admin/lingotek/settings');
$edit = [
'contrib[paragraphs][enable_bulk_management]' => FALSE,
];
$this
->drupalPostForm(NULL, $edit, 'Save settings', [], 'lingoteksettings-integrations-form');
$this
->assertText('The configuration options have been saved.');
// Now the tab is not shown.
$this
->goToContentBulkManagementForm();
$assert_session
->linkNotExists('Paragraph');
}