summaryrefslogtreecommitdiffstats
path: root/test/unit/SparkPostTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/SparkPostTest.php')
-rw-r--r--test/unit/SparkPostTest.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/unit/SparkPostTest.php b/test/unit/SparkPostTest.php
index b019a15..1b86a8f 100644
--- a/test/unit/SparkPostTest.php
+++ b/test/unit/SparkPostTest.php
@@ -7,7 +7,6 @@ class SparkPostTest extends \PHPUnit_Framework_TestCase {
/**
* @desc Ensures that the configuration class is not instantiable.
- * @covers SparkPost::__construct
*/
public function testConstructorCannotBeCalled() {
$class = new \ReflectionClass('\MessageSystems\SparkPost');
@@ -17,7 +16,6 @@ class SparkPostTest extends \PHPUnit_Framework_TestCase {
/**
* @desc Tests that an exception is thrown when a library tries to recieve the config and it has not yet been set.
* Since its a singleton this test must come before any setConfig tests.
- * @covers SparkPost::getConfig
* @expectedException Exception
* @expectedExceptionMessage No configuration has been provided
*/
@@ -27,7 +25,6 @@ class SparkPostTest extends \PHPUnit_Framework_TestCase {
/**
* @desc Tests that the api key is set when setting the config
- * @covers SparkPost::setConfig
* @expectedException Exception
* @expectedExceptionMessage You must provide an API key
*/
@@ -37,7 +34,6 @@ class SparkPostTest extends \PHPUnit_Framework_TestCase {
/**
* @desc Tests that the api key is set when setting the config and that its not empty
- * @covers SparkPost::setConfig
* @expectedException Exception
* @expectedExceptionMessage You must provide an API key
*/
@@ -47,7 +43,6 @@ class SparkPostTest extends \PHPUnit_Framework_TestCase {
/**
* @desc Tests overridable values are set while invalid values are ignored
- * @covers SparkPost::setConfig
*/
public function testSetConfigMultipleValuesAndGetConfig() {
SparkPost::setConfig(['key'=>'lala', 'version'=>'v8', 'port'=>1024, 'someOtherValue'=>'fakeValue']);
@@ -58,7 +53,7 @@ class SparkPostTest extends \PHPUnit_Framework_TestCase {
$this->assertEquals(1024, $testConfig['port']);
$this->assertNotContains('someOtherValue', array_keys($testConfig));
$this->assertEquals('https', $testConfig['protocol']);
- $this->assertEquals('app.cloudplaceholder.com', $testConfig['host']);
+ $this->assertEquals('api.sparkpost.com', $testConfig['host']);
$this->assertEquals(true, $testConfig['strictSSL']);
}
}