]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - test/sql/agendav-fixtures.sql
Add a test to ensure that "nonexistent" AgenDAV users' shares are removed.
[mailshears.git] / test / sql / agendav-fixtures.sql
index 5af6cdb11ca188177ba3935a181e2d1f678e86cf..535f02333c23d70aad20198519a23393a5440bd7 100644 (file)
@@ -11,7 +11,24 @@ INSERT INTO shares (owner, calendar, "with", options, rw)
 INSERT INTO prefs (username, options) VALUES ('booger@example.com', 'herp');
 INSERT INTO shares (owner, calendar, "with", options, rw)
   VALUES ('/caldav.php/booger%40example.com/',
-          '/carol%40example.net/',
          '/caldav.php/booger%40example.com/calendar-default',
+          '/carol%40example.net/',
+         'a:0:{}',
+         true);
+
+/* These two are missing a prefs entry to test the removal of "shares"
+ * entries in that situation.
+*/
+INSERT INTO shares (owner, calendar, "with", options, rw)
+  VALUES ('/caldav.php/stinky%40example.com/',
+         '/caldav.php/stinky%40example.com/calendar-default',
+          '/herp%40example.net/',
+         'a:0:{}',
+         true);
+
+INSERT INTO shares (owner, calendar, "with", options, rw)
+  VALUES ('/caldav.php/goober%40example.com/',
+         '/caldav.php/goober%40example.com/calendar-default',
+          '/derp%40example.net/',
          'a:0:{}',
          true);