projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #17157 from eileenmcnaughton/ids
[civicrm-core.git]
/
tests
/
phpunit
/
CRM
/
Utils
/
MailTest.php
diff --git
a/tests/phpunit/CRM/Utils/MailTest.php
b/tests/phpunit/CRM/Utils/MailTest.php
index 6a7627685cd8755c40186a8e6af225261cef732f..f87b9f8392b0998f895316b36ab94989a3f62e50 100644
(file)
--- a/
tests/phpunit/CRM/Utils/MailTest.php
+++ b/
tests/phpunit/CRM/Utils/MailTest.php
@@
-2,6
+2,7
@@
/**
* Class CRM_Utils_MailTest
/**
* Class CRM_Utils_MailTest
+ * @group headless
*/
class CRM_Utils_MailTest extends CiviUnitTestCase {
*/
class CRM_Utils_MailTest extends CiviUnitTestCase {
@@
-15,40
+16,40
@@
class CRM_Utils_MailTest extends CiviUnitTestCase {
*/
public function testFormatRFC822() {
*/
public function testFormatRFC822() {
- $values =
array(
- array(
+ $values =
[
+ [
'name' => "Test User",
'email' => "foo@bar.com",
'result' => "Test User <foo@bar.com>",
'name' => "Test User",
'email' => "foo@bar.com",
'result' => "Test User <foo@bar.com>",
-
)
,
- array(
+
]
,
+ [
'name' => '"Test User"',
'email' => "foo@bar.com",
'result' => "Test User <foo@bar.com>",
'name' => '"Test User"',
'email' => "foo@bar.com",
'result' => "Test User <foo@bar.com>",
-
)
,
- array(
+
]
,
+ [
'name' => "User, Test",
'email' => "foo@bar.com",
'result' => '"User, Test" <foo@bar.com>',
'name' => "User, Test",
'email' => "foo@bar.com",
'result' => '"User, Test" <foo@bar.com>',
-
)
,
- array(
+
]
,
+ [
'name' => '"User, Test"',
'email' => "foo@bar.com",
'result' => '"User, Test" <foo@bar.com>',
'name' => '"User, Test"',
'email' => "foo@bar.com",
'result' => '"User, Test" <foo@bar.com>',
-
)
,
- array(
+
]
,
+ [
'name' => '"Test User"',
'email' => "foo@bar.com",
'result' => '"Test User" <foo@bar.com>',
'useQuote' => TRUE,
'name' => '"Test User"',
'email' => "foo@bar.com",
'result' => '"Test User" <foo@bar.com>',
'useQuote' => TRUE,
-
)
,
- array(
+
]
,
+ [
'name' => "User, Test",
'email' => "foo@bar.com",
'result' => '"User, Test" <foo@bar.com>',
'useQuote' => TRUE,
'name' => "User, Test",
'email' => "foo@bar.com",
'result' => '"User, Test" <foo@bar.com>',
'useQuote' => TRUE,
-
)
,
-
)
;
+
]
,
+
]
;
foreach ($values as $value) {
$result = CRM_Utils_Mail::formatRFC822Email($value['name'],
$value['email'],
foreach ($values as $value) {
$result = CRM_Utils_Mail::formatRFC822Email($value['name'],
$value['email'],