]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
fix tests that did not find the data file
authorChristian Weiske <cweiske@cweiske.de>
Mon, 18 Apr 2011 05:50:20 +0000 (07:50 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Mon, 18 Apr 2011 05:50:20 +0000 (07:50 +0200)
tests/Api/PostsAddTest.php

index 4e2f4fa8182f314f57512cd9a0b9955131cd67fc..1753529e6f0f9e63c56f90ddff7feae8e4619fec 100644 (file)
@@ -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);