Skip to content

Commit 5efe205

Browse files
committed
added test around is_sandbox
1 parent f9574ed commit 5efe205

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
/**
3+
* @package wp-sparkpost
4+
*/
5+
namespace WPSparkPost;
6+
7+
class TestSparkPost extends \WP_UnitTestCase {
8+
var $SparkPost;
9+
10+
function setUp() {
11+
$this->SparkPost = new SparkPost();
12+
}
13+
14+
function test_is_sandbox() {
15+
$this->assertTrue(SparkPost::is_sandbox('testing@sparkpostbox.com'));
16+
$this->assertFalse(SparkPost::is_sandbox('testing@mydoman.com'));
17+
}
18+
}

0 commit comments

Comments
 (0)