check datetime setting
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@774 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
parent
c9398ccd5b
commit
da272b5a20
1 changed files with 7 additions and 2 deletions
|
@ -132,8 +132,8 @@ TXT;
|
||||||
$this->assertEquals($bmDescription, $bm['bDescription']);
|
$this->assertEquals($bmDescription, $bm['bDescription']);
|
||||||
$this->assertEquals($bmTags, $bm['tags']);
|
$this->assertEquals($bmTags, $bm['tags']);
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
strtotime($bmDatetime),
|
gmdate('Y-m-d H:i:s', strtotime($bmDatetime)),
|
||||||
strtotime($bm['bDatetime'])
|
$bm['bDatetime']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -162,6 +162,7 @@ TXT;
|
||||||
. '&description=' . urlencode($bmTitle)
|
. '&description=' . urlencode($bmTitle)
|
||||||
. '&extended=' . urlencode($bmDescription)
|
. '&extended=' . urlencode($bmDescription)
|
||||||
. '&tags=' . urlencode(implode(' ', $bmTags))
|
. '&tags=' . urlencode(implode(' ', $bmTags))
|
||||||
|
. '&dt=' . urlencode($bmDatetime)
|
||||||
);
|
);
|
||||||
$res = $req->send();
|
$res = $req->send();
|
||||||
|
|
||||||
|
@ -192,6 +193,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(
|
||||||
|
gmdate('Y-m-d H:i:s', strtotime($bmDatetime)),
|
||||||
|
$bm['bDatetime']
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue