You are here

protected function LingotekNodeBulkTranslationTest::assertSelectionIsKept in Lingotek Translation 3.6.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::assertSelectionIsKept()
  2. 4.0.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::assertSelectionIsKept()
  3. 3.0.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::assertSelectionIsKept()
  4. 3.1.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::assertSelectionIsKept()
  5. 3.2.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::assertSelectionIsKept()
  6. 3.3.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::assertSelectionIsKept()
  7. 3.4.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::assertSelectionIsKept()
  8. 3.5.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::assertSelectionIsKept()
  9. 3.7.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::assertSelectionIsKept()
  10. 3.8.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::assertSelectionIsKept()

Assert the selected action and key are kept.

Parameters

string $key: The selection key.

1 call to LingotekNodeBulkTranslationTest::assertSelectionIsKept()
LingotekNodeBulkTranslationTest::testDeleteMissingTranslation in tests/src/Functional/LingotekNodeBulkTranslationTest.php
Tests that translations can be deleted using the actions on the management page.
1 method overrides LingotekNodeBulkTranslationTest::assertSelectionIsKept()
LingotekNodeBulkViewsTranslationTest::assertSelectionIsKept in tests/src/Functional/Views/LingotekNodeBulkViewsTranslationTest.php
Assert the selected action and key are kept.

File

tests/src/Functional/LingotekNodeBulkTranslationTest.php, line 2992

Class

LingotekNodeBulkTranslationTest
Tests translating a node using the bulk management form.

Namespace

Drupal\Tests\lingotek\Functional

Code

protected function assertSelectionIsKept(string $key) {
  $assert_session = $this
    ->assertSession();
  $assert_session
    ->optionExists($this
    ->getBulkOperationFormName(), $this
    ->getBulkOperationNameForDeleteTranslation('es', 'node'));
  $this
    ->assertFieldChecked($key);
}