You are here

public function NodeRevisionGenerateTestTrait::getRevisionAge in Node Revision Delete 8

Returns the revisions age array.

Return value

array The revisions age.

3 calls to NodeRevisionGenerateTestTrait::getRevisionAge()
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().
NodeRevisionGenerateTest::testGenerationForm in modules/node_revision_generate/tests/src/Functional/NodeRevisionGenerateTest.php
Tests the form, the permission and the link.

File

modules/node_revision_generate/tests/src/Traits/NodeRevisionGenerateTestTrait.php, line 16

Class

NodeRevisionGenerateTestTrait
Trait for common test functions.

Namespace

Drupal\Tests\node_revision_generate\Traits

Code

public function getRevisionAge() {
  return [
    86400,
    604800,
    2592000,
    86400,
    604800,
  ];
}