You are here

public function DigestActionsTest::providerTestActionsNode in Message Digest 8

Data provider for testActionsNode.

File

message_digest_ui/tests/src/Kernel/DigestActionsTest.php, line 109

Class

DigestActionsTest
Test message digest actions.

Namespace

Drupal\Tests\message_digest_ui\Kernel

Code

public function providerTestActionsNode() {
  $cases = [];
  $flags = [
    'email_node',
    'email_user',
    'email_term',
  ];
  foreach ([
    'immediate',
    'daily',
    'weekly',
  ] as $interval) {
    foreach ($flags as $flag_id) {
      $cases[] = [
        'message_digest_interval.' . $flag_id . '.' . $interval,
        $interval === 'immediate' ? '0' : 'message_digest:' . $interval,
        $flag_id,
      ];
    }
  }
  return $cases;
}