public function LingotekSettingsTabParagraphsIntegrationFormTest::testOtherBulkTabsAreShownAfterDeactivating in Lingotek Translation 3.6.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testOtherBulkTabsAreShownAfterDeactivating()
- 4.0.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testOtherBulkTabsAreShownAfterDeactivating()
- 3.0.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testOtherBulkTabsAreShownAfterDeactivating()
- 3.1.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testOtherBulkTabsAreShownAfterDeactivating()
- 3.2.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testOtherBulkTabsAreShownAfterDeactivating()
- 3.3.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testOtherBulkTabsAreShownAfterDeactivating()
- 3.4.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testOtherBulkTabsAreShownAfterDeactivating()
- 3.5.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testOtherBulkTabsAreShownAfterDeactivating()
- 3.7.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testOtherBulkTabsAreShownAfterDeactivating()
- 3.8.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testOtherBulkTabsAreShownAfterDeactivating()
Test that all tabs are shown.
File
- tests/
src/ Functional/ Form/ LingotekSettingsTabParagraphsIntegrationFormTest.php, line 175
Class
- LingotekSettingsTabParagraphsIntegrationFormTest
- Tests the Lingotek integrations settings form with paragraphs.
Namespace
Drupal\Tests\lingotek\Functional\FormCode
public function testOtherBulkTabsAreShownAfterDeactivating() {
$assert_session = $this
->assertSession();
$this
->testBulkTabCanBeDeactivated();
$bundle = $this->vocabulary
->id();
$this
->saveLingotekContentTranslationSettings([
'taxonomy_term' => [
$bundle => [
'profiles' => 'automatic',
'fields' => [
'name' => 1,
'description' => 1,
],
],
],
]);
// Now the taxonomy tab should be shown.
$this
->goToContentBulkManagementForm();
$assert_session
->statusCodeEquals(200);
$assert_session
->linkExists('Content');
$assert_session
->linkNotExists('Paragraph');
$assert_session
->linkExists('Taxonomy term');
$this
->goToContentBulkManagementForm('taxonomy_term');
$assert_session
->statusCodeEquals(200);
$assert_session
->linkExists('Content');
$assert_session
->linkNotExists('Paragraph');
$assert_session
->linkExists('Taxonomy term');
}