diff options
author | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2010-09-29 20:52:59 +0000 |
---|---|---|
committer | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2010-09-29 20:52:59 +0000 |
commit | c9398ccd5b5208b87feef21d3996761c8be590a7 (patch) | |
tree | d539dc54518b3ae02bdeb6f1f7d1ca161f6f25f3 /tests/Api | |
parent | 2f3b23f96a5f595c9d0ef02abf5037f41e907390 (diff) | |
download | semanticscuttle-c9398ccd5b5208b87feef21d3996761c8be590a7.tar.gz semanticscuttle-c9398ccd5b5208b87feef21d3996761c8be590a7.tar.bz2 |
first tests for api/posts/add
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@773 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'tests/Api')
-rw-r--r-- | tests/Api/PostsAddTest.php | 5 |
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']) + ); } |