You are here

protected function ContentTranslationOutdatedRevisionTranslationTest::assertFlagWidget in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/content_translation/tests/src/Functional/ContentTranslationOutdatedRevisionTranslationTest.php \Drupal\Tests\content_translation\Functional\ContentTranslationOutdatedRevisionTranslationTest::assertFlagWidget()

Checks whether the flag widget is displayed.

1 call to ContentTranslationOutdatedRevisionTranslationTest::assertFlagWidget()
ContentTranslationOutdatedRevisionTranslationTest::testFlagAsOutdatedHidden in core/modules/content_translation/tests/src/Functional/ContentTranslationOutdatedRevisionTranslationTest.php
Tests that outdated revision translations work correctly.

File

core/modules/content_translation/tests/src/Functional/ContentTranslationOutdatedRevisionTranslationTest.php, line 89

Class

ContentTranslationOutdatedRevisionTranslationTest
Tests the "Flag as outdated" functionality with revision translations.

Namespace

Drupal\Tests\content_translation\Functional

Code

protected function assertFlagWidget() {
  $this
    ->assertSession()
    ->pageTextNotContains('Flag other translations as outdated');
  $this
    ->assertSession()
    ->pageTextContains('Translations cannot be flagged as outdated when content is moderated.');
}