From c9398ccd5b5208b87feef21d3996761c8be590a7 Mon Sep 17 00:00:00 2001 From: cweiske Date: Wed, 29 Sep 2010 20:52:59 +0000 Subject: [PATCH] first tests for api/posts/add git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@773 b3834d28-1941-0410-a4f8-b48e95affb8f --- tests/Api/PostsAddTest.php | 5 +++++ 1 file changed, 5 insertions(+) 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']) + ); }