You are here

private function NodeRevisionGenerateTest::getRevisions in Node Revision Delete 8

Returns the revisions array.

Return value

array The revisions.

2 calls to NodeRevisionGenerateTest::getRevisions()
NodeRevisionGenerateTest::providerGetAvailableNodesForRevisions in modules/node_revision_generate/tests/src/Unit/NodeRevisionGenerateTest.php
Data provider for testGetAvailableNodesForRevisions().
NodeRevisionGenerateTest::providerGetRevisionCreationBatch in modules/node_revision_generate/tests/src/Unit/NodeRevisionGenerateTest.php
Data provider for testGetRevisionCreationBatch().

File

modules/node_revision_generate/tests/src/Unit/NodeRevisionGenerateTest.php, line 283

Class

NodeRevisionGenerateTest
Tests the NodeRevisionGenerate class methods.

Namespace

Drupal\Tests\node_revision_generate\Unit

Code

private function getRevisions() {
  $node1 = new \stdClass();
  $node1->nid = 1;
  $node1->revision_timestamp = 1570222375;
  $node2 = new \stdClass();
  $node2->nid = 2;
  $node2->revision_timestamp = 1569253391;
  $node3 = new \stdClass();
  $node3->nid = 3;
  $node3->revision_timestamp = 1550234556;
  return [
    [
      $node1,
    ],
    [
      $node1,
      $node2,
    ],
    [
      $node1,
      $node2,
      $node3,
    ],
    [
      $node2,
      $node3,
    ],
    [
      $node1,
      $node3,
    ],
  ];
}