You are here

protected function LingotekTestBase::goToConfigBulkManagementForm in Lingotek Translation 8

Go to the config bulk management form and filter one kind of configuration.

Parameters

string $filter: Config name of the filter to apply. By default is NULL and will use the current one.

75 calls to LingotekTestBase::goToConfigBulkManagementForm()
ChineseBulkTranslationTest::testContentTypeTranslationUsingLinks in src/Tests/ChineseBulkTranslationTest.php
Tests that a config can be translated using the links on the management page.
ChineseBulkTranslationTest::testSystemSiteTranslationUsingLinks in src/Tests/ChineseBulkTranslationTest.php
Tests that a node can be translated using the links on the management page.
LingotekConfigBulkFormTest::testConfigFilter in src/Tests/Form/LingotekConfigBulkFormTest.php
Tests that the config filtering works correctly.
LingotekConfigBulkFormTest::testDisabledLanguage in src/Tests/Form/LingotekConfigBulkFormTest.php
Tests that the config bulk form doesn't show a language if it's disabled.
LingotekConfigBulkFormTest::testFieldConfigFilter in src/Tests/Form/LingotekConfigBulkFormTest.php
Tests that the field config filtering works correctly.

... See full list

File

src/Tests/LingotekTestBase.php, line 106

Class

LingotekTestBase
Base class for Lingotek test. Performs authorization of the account.

Namespace

Drupal\lingotek\Tests

Code

protected function goToConfigBulkManagementForm($filter = NULL) {
  $this
    ->drupalGet('admin/lingotek/config/manage');
  if ($filter !== NULL) {
    $edit = [
      'filters[wrapper][bundle]' => $filter,
    ];
    $this
      ->drupalPostForm(NULL, $edit, t('Filter'));
  }
}