test that public bookmarks of other people are not exported via csv

git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@703 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
cweiske 2010-03-28 18:09:59 +00:00
parent 74dc9ea6a4
commit ccbc63aec4
2 changed files with 19 additions and 1 deletions

View file

@ -140,6 +140,11 @@ class Api_ExportCsvTest extends TestBaseApi
$this->addBookmark( $this->addBookmark(
null, 'http://example.org/testBookmarks-private2', 2 null, 'http://example.org/testBookmarks-private2', 2
); );
//public bookmark from other people that should not be
// exported, too
$this->addBookmark(
null, 'http://example.org/testBookmarks-other', 0
);
$body = $req->send()->getBody(); $body = $req->send()->getBody();
$csv = $this->getCsvArray($body); $csv = $this->getCsvArray($body);

View file

@ -1,5 +1,18 @@
<?php <?php
// Export in CSV format in order to allow the import into a spreadsheet tool like Excel /**
* Export own bookmarks in CSV format in order to allow the import
* into a spreadsheet tool like Excel
*
* PHP version 5.
*
* @category Bookmarking
* @package SemanticScuttle
* @author Benjamin Huynh-Kim-Bang <mensonge@users.sourceforge.net>
* @author Christian Weiske <cweiske@cweiske.de>
* @author Eric Dane <ericdane@users.sourceforge.net>
* @license GPL http://www.gnu.org/licenses/gpl.html
* @link http://sourceforge.net/projects/semanticscuttle
*/
// Force HTTP authentication first! // Force HTTP authentication first!
$httpContentType = 'application/csv-tab-delimited-table'; $httpContentType = 'application/csv-tab-delimited-table';