aboutsummaryrefslogtreecommitdiff
path: root/tests/Api
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2011-04-26 07:01:48 +0200
committerChristian Weiske <cweiske@cweiske.de>2011-04-26 07:01:48 +0200
commit6b02db7920f09cafadc181bbaed283d5adf6cee6 (patch)
tree91733adb4c0bd9d004459a48e559237f76ec9a9b /tests/Api
parent3e5cadc7648658e2c92fbb580d622997f5dc874e (diff)
downloadsemanticscuttle-6b02db7920f09cafadc181bbaed283d5adf6cee6.tar.gz
semanticscuttle-6b02db7920f09cafadc181bbaed283d5adf6cee6.tar.bz2
use cookie jar instead of manually creating the cookie
Diffstat (limited to 'tests/Api')
-rw-r--r--tests/Api/PostsAddTest.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/Api/PostsAddTest.php b/tests/Api/PostsAddTest.php
index b915b4c..ddaa1fd 100644
--- a/tests/Api/PostsAddTest.php
+++ b/tests/Api/PostsAddTest.php
@@ -573,12 +573,8 @@ TXT;
$bms = $this->bs->getBookmarks(0, null, $uId);
$this->assertEquals(1, count($bms['bookmarks']));
- $bm = reset($bms['bookmarks']);
- $bmId = $bm['bId'];
- $oldUid = $uId;
$user = $this->us->getUser($uId);
- $userId = $user['username'];
- $reqUrl = $GLOBALS['unittestUrl'] . 'bookmarks.php/' . $userId . '?action=get' . '&unittestMode=1';
+ $reqUrl = $GLOBALS['unittestUrl'] . 'bookmarks.php/' . $user['username'] . '?action=get' . '&unittestMode=1';
list($req, $uId) = $this->getAuthRequest('?unittestMode=1');
$req->setMethod(HTTP_Request2::METHOD_POST);