-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: set Message::merge to true if either merge var or global merg…
…e var was set
- Loading branch information
Sven Loth
committed
Jan 26, 2015
1 parent
2f06daa
commit d5d7b8c
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -156,4 +156,21 @@ public function testIsImportant() | |
$this->assertEquals('High', $headers['Importance']); | ||
$this->assertEquals('urgent', $headers['Priority']); | ||
} | ||
|
||
public function testSetMergeVar() | ||
{ | ||
$message = new Message(); | ||
$this->assertEquals(false, $message->getMerge()); | ||
$message->addMergeVar('[email protected]', 'testkey', 'testvalue'); | ||
$this->assertEquals(true, $message->getMerge()); | ||
} | ||
|
||
public function testSetGlobalMergeVar() | ||
{ | ||
$message = new Message(); | ||
$this->assertEquals(false, $message->getMerge()); | ||
$message->addGlobalMergeVar('testkey', 'testvalue'); | ||
$this->assertEquals(true, $message->getMerge()); | ||
} | ||
|
||
} |