}
+ public function setUp()
+ {
+ parent::setUp();
+ $this->bs->deleteAll();
+ }
+
+
/**
* Test if authentication is required when sending no auth data
*/
public function testAddBookmarkPost()
{
- $this->bs->deleteAll();
-
$bmUrl = 'http://example.org/tag-1';
$bmTags = array('foo', 'bar', 'baz');
$bmDatetime = '2010-09-08T03:02:01Z';
*/
public function testAddBookmarkGet()
{
- $this->bs->deleteAll();
-
$bmUrl = 'http://example.org/tag-1';
$bmTags = array('foo', 'bar', 'baz');
$bmDatetime = '2010-09-08T03:02:01Z';
*/
public function testUrlDescEnough()
{
- $this->bs->deleteAll();
-
list($req, $uId) = $this->getAuthRequest();
$req->setMethod(HTTP_Request2::METHOD_POST);
$req->addPostParameter('url', 'http://example.org/tag2');
*/
public function testUrlRequired()
{
- $this->bs->deleteAll();
-
list($req, $uId) = $this->getAuthRequest();
$req->setMethod(HTTP_Request2::METHOD_POST);
//$req->addPostParameter('url', 'http://example.org/tag2');
*/
public function testDescriptionRequired()
{
- $this->bs->deleteAll();
-
list($req, $uId) = $this->getAuthRequest();
$req->setMethod(HTTP_Request2::METHOD_POST);
$req->addPostParameter('url', 'http://example.org/tag2');
*/
public function testReplaceNo()
{
- $this->bs->deleteAll();
-
$url = 'http://example.org/tag2';
$title1 = 'foo bar 1';
$title2 = 'bar 2 foo';
*/
public function testReplaceYes()
{
- $this->bs->deleteAll();
-
$url = 'http://example.org/tag2';
$title1 = 'foo bar 1';
$title2 = 'bar 2 foo';