You are here

public function DigestTest::processTimeProvider in Message Digest 8

Provides test data for testProcessTimeThreshold().

Return value

array Test data.

File

tests/src/Unit/Plugin/Notifier/DigestTest.php, line 193

Class

DigestTest
Tests the Digest plugin.

Namespace

Drupal\Tests\message_digest\Unit\Plugin\Notifier

Code

public function processTimeProvider() {
  return [
    // 25 hours ago.
    [
      952646400,
      952556400,
      TRUE,
    ],
    // 24 hours, 15 seconds ago.
    [
      952646400,
      952559985,
      TRUE,
    ],
    // 24 hours ago.
    [
      952646400,
      952560000,
      TRUE,
    ],
    // 23 hours, 59 minutes, 45 seconds ago.
    [
      952646400,
      952560015,
      TRUE,
    ],
    // 23 hours, 59 minutes ago.
    [
      952646400,
      952560060,
      FALSE,
    ],
    // 23 hours ago.
    [
      952646400,
      952563600,
      FALSE,
    ],
  ];
}