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:
parent
74dc9ea6a4
commit
ccbc63aec4
@ -140,6 +140,11 @@ class Api_ExportCsvTest extends TestBaseApi
|
||||
$this->addBookmark(
|
||||
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();
|
||||
$csv = $this->getCsvArray($body);
|
||||
|
@ -1,5 +1,18 @@
|
||||
<?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!
|
||||
$httpContentType = 'application/csv-tab-delimited-table';
|
||||
|
Loading…
Reference in New Issue
Block a user