summaryrefslogtreecommitdiff
path: root/tests/TestBaseApi.php
diff options
context:
space:
mode:
authorMark Pemberton <mpemberton5@gmail.com>2011-06-15 00:58:29 -0400
committerMark Pemberton <mpemberton5@gmail.com>2011-06-15 00:58:29 -0400
commit045d139d64ada2c510ed05e177ba6f484ad68496 (patch)
treebabf934f3baf386cf4efed73fb9f2b72df65e2a6 /tests/TestBaseApi.php
parent74bab13f05ee7552c13e0dc8f4523cd7071a0085 (diff)
downloadsemanticscuttle-045d139d64ada2c510ed05e177ba6f484ad68496.tar.gz
semanticscuttle-045d139d64ada2c510ed05e177ba6f484ad68496.tar.bz2
Added RSS Feed tests
Diffstat (limited to 'tests/TestBaseApi.php')
-rw-r--r--tests/TestBaseApi.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/TestBaseApi.php b/tests/TestBaseApi.php
index 50a2413..f860d10 100644
--- a/tests/TestBaseApi.php
+++ b/tests/TestBaseApi.php
@@ -187,7 +187,8 @@ class TestBaseApi extends TestBase
* @uses getRequest()
*/
protected function getLoggedInRequest(
- $urlSuffix = null, $auth = true, $privateKey = false
+ $urlSuffix = null, $auth = true, $privateKey = false,
+ $setCookie = true
) {
if (is_array($auth)) {
list($username, $password) = $auth;
@@ -217,7 +218,9 @@ class TestBaseApi extends TestBase
$this->assertEquals(302, $res->getStatus(), 'Login failure');
$req = $this->getRequest($urlSuffix);
- $req->setCookieJar($cookies);
+ if ($setCookie) {
+ $req->setCookieJar($cookies);
+ }
return array($req, $uid);
}