From b937d6ee42f3d5c0bab83f7cdefd7319837eb2fa Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 18 Apr 2011 07:50:20 +0200 Subject: fix tests that did not find the data file --- tests/Api/PostsAddTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/Api') diff --git a/tests/Api/PostsAddTest.php b/tests/Api/PostsAddTest.php index 4e2f4fa..1753529 100644 --- a/tests/Api/PostsAddTest.php +++ b/tests/Api/PostsAddTest.php @@ -524,7 +524,7 @@ TXT; $testcookievalue = $uId . ':' . md5($testusername . $testcookiepassword); $req->setCookieJar(true); $req->addCookie($testcookiekey, $testcookievalue); - $req->addUpload('userfile', '../data/BookmarkTest_netscapebookmarks.html'); + $req->addUpload('userfile', dirname(__FILE__) . '/../data/BookmarkTest_netscapebookmarks.html'); $req->send(); $this->us->setCurrentUserId($uId); $bms = $this->bs->getBookmarks(0, null, $uId); @@ -553,7 +553,7 @@ TXT; $testcookievalue = $uId . ':' . md5($testusername . $testcookiepassword); $req->setCookieJar(true); $req->addCookie($testcookiekey, $testcookievalue); - $req->addUpload('userfile', '../data/BookmarkTest_deliciousbookmarks.xml'); + $req->addUpload('userfile', dirname(__FILE__) . '/../data/BookmarkTest_deliciousbookmarks.xml'); $req->send(); $this->us->setCurrentUserId($uId); $bms = $this->bs->getBookmarks(0, null, $uId); -- cgit v1.2.3