You are here

protected function ContentGenerationTrait::generateRevisionMatrix in Workbench Moderation to Content Moderation 8.2

1 call to ContentGenerationTrait::generateRevisionMatrix()
MigrationTestTrait::createRevisions in tests/src/Kernel/MigrationTestTrait.php
Creates a set of revisions of a single entity.

File

tests/src/Kernel/ContentGenerationTrait.php, line 87

Class

ContentGenerationTrait

Namespace

Drupal\Tests\wbm2cm\Kernel

Code

protected function generateRevisionMatrix($revisions = 50) {
  $matrix = [];
  while (count($matrix) < $revisions) {
    array_push($matrix, $this
      ->generateRevision());
  }
  return $this
    ->pokeHoles($matrix);
}