summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/Api/PostsAddTest.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/Api/PostsAddTest.php b/tests/Api/PostsAddTest.php
index 1db8af9..cc9a2c9 100644
--- a/tests/Api/PostsAddTest.php
+++ b/tests/Api/PostsAddTest.php
@@ -101,6 +101,7 @@ TXT;
$req->addPostParameter('description', $bmTitle);
$req->addPostParameter('extended', $bmDescription);
$req->addPostParameter('tags', implode(' ', $bmTags));
+ $req->addPostParameter('dt', $bmDatetime);
$res = $req->send();
//all should be well
@@ -130,6 +131,10 @@ TXT;
$this->assertEquals($bmTitle, $bm['bTitle']);
$this->assertEquals($bmDescription, $bm['bDescription']);
$this->assertEquals($bmTags, $bm['tags']);
+ $this->assertEquals(
+ strtotime($bmDatetime),
+ strtotime($bm['bDatetime'])
+ );
}