You are here

public function LingotekSettingsTabParagraphsIntegrationFormTest::testOtherBulkTabsAreShownAfterDeactivating in Lingotek Translation 8.2

Same name and namespace in other branches
  1. 4.0.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testOtherBulkTabsAreShownAfterDeactivating()
  2. 3.0.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testOtherBulkTabsAreShownAfterDeactivating()
  3. 3.1.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testOtherBulkTabsAreShownAfterDeactivating()
  4. 3.2.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testOtherBulkTabsAreShownAfterDeactivating()
  5. 3.3.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testOtherBulkTabsAreShownAfterDeactivating()
  6. 3.4.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testOtherBulkTabsAreShownAfterDeactivating()
  7. 3.5.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testOtherBulkTabsAreShownAfterDeactivating()
  8. 3.6.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testOtherBulkTabsAreShownAfterDeactivating()
  9. 3.7.x tests/src/Functional/Form/LingotekSettingsTabParagraphsIntegrationFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabParagraphsIntegrationFormTest::testOtherBulkTabsAreShownAfterDeactivating()
  10. 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 170

Class

LingotekSettingsTabParagraphsIntegrationFormTest
Tests the Lingotek integrations settings form with paragraphs.

Namespace

Drupal\Tests\lingotek\Functional\Form

Code

public function testOtherBulkTabsAreShownAfterDeactivating() {
  $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();
  $this
    ->assertResponse(200);
  $this
    ->assertLink('Content');
  $this
    ->assertNoLink('Paragraph');
  $this
    ->assertLink('Taxonomy term');
  $this
    ->goToContentBulkManagementForm('taxonomy_term');
  $this
    ->assertResponse(200);
  $this
    ->assertLink('Content');
  $this
    ->assertNoLink('Paragraph');
  $this
    ->assertLink('Taxonomy term');
}