You are here

public function EntityDecoupledTranslationRevisionsTest::testDecoupledPendingRevisions 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::testDecoupledPendingRevisions()
  2. 9 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\Entity

Code

public function testDecoupledPendingRevisions($sequence) {
  $revision_id = $this
    ->doTestEditSequence($sequence);
  $this
    ->assertCount($revision_id, $sequence);
}