You are here

protected function ContentTranslationUITestBase::getFormSubmitAction in Drupal 8

Same name in this branch
  1. 8 core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php \Drupal\content_translation\Tests\ContentTranslationUITestBase::getFormSubmitAction()
  2. 8 core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationUITestBase::getFormSubmitAction()
Same name and namespace in other branches
  1. 9 core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationUITestBase::getFormSubmitAction()
  2. 10 core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationUITestBase::getFormSubmitAction()

Returns the form action value to be used to submit the entity form.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity being tested.

string $langcode: Language code for the form.

Return value

string Name of the button to hit.

9 calls to ContentTranslationUITestBase::getFormSubmitAction()
CommentTranslationUITest::doTestAuthoringInfo in core/modules/comment/tests/src/Functional/CommentTranslationUITest.php
Tests the translation authoring information.
CommentTranslationUITest::doTestPublishedStatus in core/modules/comment/tests/src/Functional/CommentTranslationUITest.php
Tests the translation publishing status.
ContentTranslationUITestBase::doTestAuthoringInfo in core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php
Tests the translation authoring information.
ContentTranslationUITestBase::doTestChangedTimeAfterSaveWithoutChanges in core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php
Test the changed time after API and FORM save without changes.
ContentTranslationUITestBase::doTestOutdatedStatus in core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php
Tests up-to-date status tracking.

... See full list

File

core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php, line 432

Class

ContentTranslationUITestBase
Tests the Content Translation UI.

Namespace

Drupal\Tests\content_translation\Functional

Code

protected function getFormSubmitAction(EntityInterface $entity, $langcode) {
  return t('Save') . $this
    ->getFormSubmitSuffix($entity, $langcode);
}