public function MessageDigestTest::providerTestNotifierDelivery in Message Digest 8
Data provider for ::testNotifierDelivery().
Return value
array An array of test data, each test case an array with two elements:
- A boolean indicating whether or not an entity should be referenced.
- The expected subject of the message digest e-mail that is sent.
File
- tests/
src/ Kernel/ MessageDigestTest.php, line 105
Class
- MessageDigestTest
- Kernel tests for Message Digest.
Namespace
Drupal\Tests\message_digest\KernelCode
public function providerTestNotifierDelivery() {
return [
// Test case that does not reference an entity. In this case the site name
// should be mentioned in the message subject.
[
FALSE,
'Test site message digest',
],
// Test case that references an entity. In this case the name of the
// entity should be mentioned in the message subject. We are using a user
// entity to test this case.
[
TRUE,
'Test user message digest',
],
];
}