File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,9 @@ class message {
101
101
/** @var string An email address which can be used to send an reply. */
102
102
private $ replyto ;
103
103
104
+ /** @var string A name which can be used with replyto. */
105
+ private $ replytoname ;
106
+
104
107
/** @var int Used internally to store the id of the row representing this message in DB. */
105
108
private $ savedmessageid ;
106
109
@@ -130,6 +133,7 @@ class message {
130
133
'contexturl ' ,
131
134
'contexturlname ' ,
132
135
'replyto ' ,
136
+ 'replytoname ' ,
133
137
'savedmessageid ' ,
134
138
'attachment ' ,
135
139
'attachname ' ,
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ public function test_get_eventobject_for_processor() {
62
62
$ message ->contexturl = 'http://GalaxyFarFarAway.com ' ;
63
63
$ message ->contexturlname = 'Context name ' ;
64
64
$ message ->replyto = "random@example.com " ;
65
+ $ message ->replytoname = fullname ($ USER );
65
66
$ message ->attachname = 'attachment ' ;
66
67
$ content = array ('* ' => array ('header ' => ' test ' , 'footer ' => ' test ' )); // Extra content for all types of messages.
67
68
$ message ->set_additional_content ('test ' , $ content );
@@ -96,6 +97,7 @@ public function test_get_eventobject_for_processor() {
96
97
$ this ->assertSame ($ message ->contexturl , $ stdclass ->contexturl );
97
98
$ this ->assertSame ($ message ->contexturlname , $ stdclass ->contexturlname );
98
99
$ this ->assertSame ($ message ->replyto , $ stdclass ->replyto );
100
+ $ this ->assertSame ($ message ->replytoname , $ stdclass ->replytoname );
99
101
$ this ->assertSame ($ message ->attachname , $ stdclass ->attachname );
100
102
101
103
// Extra content for fullmessage only.
You can’t perform that action at this time.
0 commit comments