fix tests that did not find the data file

This commit is contained in:
Christian Weiske 2011-04-18 07:50:20 +02:00
parent 3b582fd875
commit b937d6ee42

View file

@ -524,7 +524,7 @@ TXT;
$testcookievalue = $uId . ':' . md5($testusername . $testcookiepassword); $testcookievalue = $uId . ':' . md5($testusername . $testcookiepassword);
$req->setCookieJar(true); $req->setCookieJar(true);
$req->addCookie($testcookiekey, $testcookievalue); $req->addCookie($testcookiekey, $testcookievalue);
$req->addUpload('userfile', '../data/BookmarkTest_netscapebookmarks.html'); $req->addUpload('userfile', dirname(__FILE__) . '/../data/BookmarkTest_netscapebookmarks.html');
$req->send(); $req->send();
$this->us->setCurrentUserId($uId); $this->us->setCurrentUserId($uId);
$bms = $this->bs->getBookmarks(0, null, $uId); $bms = $this->bs->getBookmarks(0, null, $uId);
@ -553,7 +553,7 @@ TXT;
$testcookievalue = $uId . ':' . md5($testusername . $testcookiepassword); $testcookievalue = $uId . ':' . md5($testusername . $testcookiepassword);
$req->setCookieJar(true); $req->setCookieJar(true);
$req->addCookie($testcookiekey, $testcookievalue); $req->addCookie($testcookiekey, $testcookievalue);
$req->addUpload('userfile', '../data/BookmarkTest_deliciousbookmarks.xml'); $req->addUpload('userfile', dirname(__FILE__) . '/../data/BookmarkTest_deliciousbookmarks.xml');
$req->send(); $req->send();
$this->us->setCurrentUserId($uId); $this->us->setCurrentUserId($uId);
$bms = $this->bs->getBookmarks(0, null, $uId); $bms = $this->bs->getBookmarks(0, null, $uId);