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