protected function EntityDecoupledTranslationRevisionsTest::doTestEditSequence in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php \Drupal\KernelTests\Core\Entity\EntityDecoupledTranslationRevisionsTest::doTestEditSequence()
- 10 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.
2 calls to EntityDecoupledTranslationRevisionsTest::doTestEditSequence()
- EntityDecoupledTranslationRevisionsTest::testDecoupledPendingRevisions in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityDecoupledTranslationRevisionsTest.php - Tests decoupled default revisions.
- EntityDecoupledTranslationRevisionsTest::testUntranslatableFields in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityDecoupledTranslationRevisionsTest.php - Tests that untranslatable fields are handled correctly.
File
- core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityDecoupledTranslationRevisionsTest.php, line 291
Class
- EntityDecoupledTranslationRevisionsTest
- Test decoupled translation revisions.
Namespace
Drupal\KernelTests\Core\EntityCode
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;
}