first tests for api/posts/add

git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@773 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
cweiske 2010-09-29 20:52:59 +00:00
parent 2f3b23f96a
commit c9398ccd5b

View file

@ -101,6 +101,7 @@ TXT;
$req->addPostParameter('description', $bmTitle); $req->addPostParameter('description', $bmTitle);
$req->addPostParameter('extended', $bmDescription); $req->addPostParameter('extended', $bmDescription);
$req->addPostParameter('tags', implode(' ', $bmTags)); $req->addPostParameter('tags', implode(' ', $bmTags));
$req->addPostParameter('dt', $bmDatetime);
$res = $req->send(); $res = $req->send();
//all should be well //all should be well
@ -130,6 +131,10 @@ TXT;
$this->assertEquals($bmTitle, $bm['bTitle']); $this->assertEquals($bmTitle, $bm['bTitle']);
$this->assertEquals($bmDescription, $bm['bDescription']); $this->assertEquals($bmDescription, $bm['bDescription']);
$this->assertEquals($bmTags, $bm['tags']); $this->assertEquals($bmTags, $bm['tags']);
$this->assertEquals(
strtotime($bmDatetime),
strtotime($bm['bDatetime'])
);
} }