diff options
author | nornholdj <nornholdj@gmail.com> | 2014-11-04 15:53:43 -0500 |
---|---|---|
committer | nornholdj <nornholdj@gmail.com> | 2014-11-04 15:53:43 -0500 |
commit | 1fdabdbdde9cb927fea2c06d2c0eb95e06db1e54 (patch) | |
tree | b7f2886de77c8dacff3ece6ac7bf31e5cc6e5421 /test/unit/SparkPostTest.php | |
parent | 1d6fad1db52c968f7cb8f6a93d3c84ae1f2b2dd8 (diff) | |
download | php-sparkpost-1fdabdbdde9cb927fea2c06d2c0eb95e06db1e54.zip php-sparkpost-1fdabdbdde9cb927fea2c06d2c0eb95e06db1e54.tar.gz php-sparkpost-1fdabdbdde9cb927fea2c06d2c0eb95e06db1e54.tar.bz2 |
MA-946 #time 20m updated test comments and updated SparkPost default
hostname
Diffstat (limited to 'test/unit/SparkPostTest.php')
-rw-r--r-- | test/unit/SparkPostTest.php | 7 |
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']); } } |