public function EmailActivationTest::activationMailDataProvider in Search API Saved Searches 8
Provides data for testActivationMail().
Return value
array Arrays of call arguments for testActivationMail().
See also
\Drupal\Tests\search_api_saved_searches\Kernel\EmailActivationTest::testActivationMail()
File
- tests/
src/ Kernel/ EmailActivationTest.php, line 203
Class
- EmailActivationTest
- Tests whether activation mails are sent correctly.
Namespace
Drupal\Tests\search_api_saved_searches\KernelCode
public function activationMailDataProvider() {
return [
'already disabled' => [
0,
0,
'foo@example.net',
FALSE,
FALSE,
FALSE,
],
'admin-created' => [
1,
0,
'foo@example.net',
TRUE,
TRUE,
FALSE,
],
'own mail' => [
2,
2,
NULL,
TRUE,
TRUE,
FALSE,
],
'other mail' => [
2,
2,
'foo@example.net',
TRUE,
FALSE,
TRUE,
],
'anonymous user' => [
0,
0,
'foo@example.net',
TRUE,
FALSE,
TRUE,
],
];
}