You are here

protected function EntityDecoupledTranslationRevisionsTest::doTestEditSequence in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php \Drupal\KernelTests\Core\Entity\EntityDecoupledTranslationRevisionsTest::doTestEditSequence()
  2. 9 core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php \Drupal\KernelTests\Core\Entity\EntityDecoupledTranslationRevisionsTest::doTestEditSequence()

Actually tests an edit step sequence.

Parameters

array[] $sequence: An array of sequence steps.

Return value

int The latest saved revision id.

File

core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php, line 291

Class

EntityDecoupledTranslationRevisionsTest
Test decoupled translation revisions.

Namespace

Drupal\KernelTests\Core\Entity

Code

protected function doTestEditSequence($sequence) {
  $revision_id = NULL;
  foreach ($sequence as $index => $step) {
    $this->stepIndex = $index;
    $revision_id = call_user_func_array([
      $this,
      'doEditStep',
    ], $step);
  }
  return $revision_id;
}