]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
test that public bookmarks of other people are not exported via csv
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Sun, 28 Mar 2010 18:09:59 +0000 (18:09 +0000)
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Sun, 28 Mar 2010 18:09:59 +0000 (18:09 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@703 b3834d28-1941-0410-a4f8-b48e95affb8f

tests/Api/ExportCsvTest.php
www/api/export_csv.php

index 18008e1d6b584f2738b9231dda7802943329cc8d..2bff8a5eb3471f59d94bb82403f1e70ae3967931 100644 (file)
@@ -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);
index 43951ecf04b12574896269e5a6b686dcb03d1cab..bb469b1672d67f6b34d430febc4908640eeca1d7 100644 (file)
@@ -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';