function EntityDecoupledTranslationRevisionsTest::doTestEditSequence
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php \Drupal\KernelTests\Core\Entity\EntityDecoupledTranslationRevisionsTest::doTestEditSequence()
- 8.9.x 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) : int {
$revision_id = NULL;
foreach ($sequence as $index => $step) {
$this->stepIndex = $index;
$revision_id = call_user_func_array([
$this,
'doEditStep',
], $step);
}
return (int) $revision_id;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.