summaryrefslogtreecommitdiffstats
path: root/test/unit/SendGridCompatibiility
diff options
context:
space:
mode:
authornornholdj <nornholdj@gmail.com>2014-11-13 13:49:28 -0500
committernornholdj <nornholdj@gmail.com>2014-11-13 13:49:28 -0500
commitb79ffee50f7d7c655a1cfcec03081a2ae138a8ea (patch)
tree1efa718817faf31750c589f8d4eb4543bfa58351 /test/unit/SendGridCompatibiility
parentfa4f9b2fabb847f99ac52f6cfc869f4d4b629104 (diff)
downloadphp-sparkpost-b79ffee50f7d7c655a1cfcec03081a2ae138a8ea.zip
php-sparkpost-b79ffee50f7d7c655a1cfcec03081a2ae138a8ea.tar.gz
php-sparkpost-b79ffee50f7d7c655a1cfcec03081a2ae138a8ea.tar.bz2
MA-1084 #time 1h updated tests and compatibility
Diffstat (limited to 'test/unit/SendGridCompatibiility')
-rw-r--r--test/unit/SendGridCompatibiility/EmailTest.php10
-rw-r--r--test/unit/SendGridCompatibiility/SendGridTest.php3
2 files changed, 5 insertions, 8 deletions
diff --git a/test/unit/SendGridCompatibiility/EmailTest.php b/test/unit/SendGridCompatibiility/EmailTest.php
index dbabb77..bc34402 100644
--- a/test/unit/SendGridCompatibiility/EmailTest.php
+++ b/test/unit/SendGridCompatibiility/EmailTest.php
@@ -68,12 +68,12 @@ class SendGridCompatibilityEmailTest extends \PHPUnit_Framework_TestCase {
$this->assertEquals('test@email.com', $this->email->model['replyTo']);
}
-
-
+ /**
+ * @expectedException Exception
+ * @expectedExceptionMessage Adding bcc recipients is not yet supported, try adding them as a "to" address
+ */
public function testAddBcc() {
$this->email->addBcc('test@email.com');
-
- $this->assertEquals(array('test@email.com'), $this->email->model['bcc']);
}
public function testSetSubject() {
@@ -140,7 +140,7 @@ class SendGridCompatibilityEmailTest extends \PHPUnit_Framework_TestCase {
* @expectedExceptionMessage Setting Unique Arguments is not yet supported
*/
public function testSetUniqueArgs() {
- $this->email->setUniqueArgs(['blah', 'andBlah']);
+ $this->email->setUniqueArgs(array('blah', 'andBlah'));
}
diff --git a/test/unit/SendGridCompatibiility/SendGridTest.php b/test/unit/SendGridCompatibiility/SendGridTest.php
deleted file mode 100644
index 15c5adc..0000000
--- a/test/unit/SendGridCompatibiility/SendGridTest.php
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-
-?> \ No newline at end of file