public function RecipientTypePluginsTest::providerDelivery in Workbench Email 2.x
Same name and namespace in other branches
- 8 tests/src/Kernel/RecipientTypePluginsTest.php \Drupal\Tests\workbench_email\Kernel\RecipientTypePluginsTest::providerDelivery()
Data provider for testDelivery.
Return value
array Test cases.
File
- tests/
src/ Kernel/ RecipientTypePluginsTest.php, line 116
Class
- RecipientTypePluginsTest
- Defines a class for testing handlers.
Namespace
Drupal\Tests\workbench_email\KernelCode
public function providerDelivery() {
return [
'author' => [
'author',
[
'author@example.com',
],
],
'last revision author' => [
'last_revision_author',
[
'last-author@example.com',
],
],
'role' => [
'role',
[
'editor@example.com',
'editor2@example.com',
],
[
'roles' => [
'editor',
],
],
[
'user.role.editor',
],
],
'roles_with_access' => [
'roles_with_access',
[
'editor@example.com',
],
[
'roles' => [
'editor',
],
],
[
'user.role.editor',
],
],
'email field' => [
'email',
[
'random@example.com',
],
[
'fields' => [
'node:field_email',
],
],
[
'field.storage.node.field_email',
],
],
'entity reference field' => [
'entity_reference_user',
[
'approver@example.com',
],
[
'fields' => [
'node:field_approver',
],
],
[
'field.storage.node.field_approver',
],
],
'fixed email' => [
'fixed_email',
[
'fixed@example.com',
],
[
'recipients' => 'fixed@example.com',
],
],
];
}