You are here

trait NodeRevisionGenerateTestTrait in Node Revision Delete 8

Trait for common test functions.

Hierarchy

2 files declare their use of NodeRevisionGenerateTestTrait
NodeRevisionGenerateTest.php in modules/node_revision_generate/tests/src/Functional/NodeRevisionGenerateTest.php
NodeRevisionGenerateTest.php in modules/node_revision_generate/tests/src/Unit/NodeRevisionGenerateTest.php

File

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

Namespace

Drupal\Tests\node_revision_generate\Traits
View source
trait NodeRevisionGenerateTestTrait {

  /**
   * Returns the revisions age array.
   *
   * @return array
   *   The revisions age.
   */
  public function getRevisionAge() {
    return [
      86400,
      604800,
      2592000,
      86400,
      604800,
    ];
  }

}

Members

Namesort descending Modifiers Type Description Overrides
NodeRevisionGenerateTestTrait::getRevisionAge public function Returns the revisions age array.