public function EntityDecoupledTranslationRevisionsTest::testDecoupledPendingRevisions in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php \Drupal\KernelTests\Core\Entity\EntityDecoupledTranslationRevisionsTest::testDecoupledPendingRevisions()
- 10 core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php \Drupal\KernelTests\Core\Entity\EntityDecoupledTranslationRevisionsTest::testDecoupledPendingRevisions()
Tests decoupled default revisions.
@covers ::createRevision
@dataProvider dataTestDecoupledPendingRevisions
Parameters
array[] $sequence: An array with arrays of arguments for the ::doSaveNewRevision() method as values. Every child array corresponds to a method invocation.
File
- core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityDecoupledTranslationRevisionsTest.php, line 206
Class
- EntityDecoupledTranslationRevisionsTest
- Test decoupled translation revisions.
Namespace
Drupal\KernelTests\Core\EntityCode
public function testDecoupledPendingRevisions($sequence) {
$revision_id = $this
->doTestEditSequence($sequence);
$this
->assertCount($revision_id, $sequence);
}