You are here

public function LingotekNodeBulkFormWithGroupModuleTest::testGroupFilterDoesntExistForNodesIfNoGnode in Lingotek Translation 4.0.x

Same name and namespace in other branches
  1. 3.5.x tests/src/Functional/Form/LingotekNodeBulkFormWithGroupModuleTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekNodeBulkFormWithGroupModuleTest::testGroupFilterDoesntExistForNodesIfNoGnode()
  2. 3.6.x tests/src/Functional/Form/LingotekNodeBulkFormWithGroupModuleTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekNodeBulkFormWithGroupModuleTest::testGroupFilterDoesntExistForNodesIfNoGnode()
  3. 3.7.x tests/src/Functional/Form/LingotekNodeBulkFormWithGroupModuleTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekNodeBulkFormWithGroupModuleTest::testGroupFilterDoesntExistForNodesIfNoGnode()
  4. 3.8.x tests/src/Functional/Form/LingotekNodeBulkFormWithGroupModuleTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekNodeBulkFormWithGroupModuleTest::testGroupFilterDoesntExistForNodesIfNoGnode()

Tests that the bulk management group filtering exists for nodes.

File

tests/src/Functional/Form/LingotekNodeBulkFormWithGroupModuleTest.php, line 137

Class

LingotekNodeBulkFormWithGroupModuleTest
Tests the bulk management form when the group module is enabled.

Namespace

Drupal\Tests\lingotek\Functional\Form

Code

public function testGroupFilterDoesntExistForNodesIfNoGnode() {

  /** @var \Drupal\Core\Extension\ModuleInstallerInterface  $moduleInstaller */
  $moduleInstaller = \Drupal::service('module_installer');
  $moduleInstaller
    ->uninstall([
    'gnode',
  ]);
  $this
    ->goToContentBulkManagementForm();

  // Assert there is a select for group.
  $this
    ->assertNoField('filters[wrapper][group]', 'There is not a filter for group');
}