diff options
Diffstat (limited to 'test/unit/SparkPostTest.php')
-rw-r--r-- | test/unit/SparkPostTest.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/SparkPostTest.php b/test/unit/SparkPostTest.php index 101784a..b1b38fe 100644 --- a/test/unit/SparkPostTest.php +++ b/test/unit/SparkPostTest.php @@ -51,6 +51,12 @@ class SparkPostTest extends \PHPUnit_Framework_TestCase { $this->resource->setHttpAdapter(new \stdClass()); } + public function testSetConfigStringKey() { + $this->resource->setConfig('a key'); + $config = self::$utils->getProperty($this->resource, 'config'); + $this->assertEquals('a key', $config['key']); + } + /** * @expectedException Exception * @expectedExceptionMessageRegExp /API key/ |