From 094a1bc7cbb6dda3efb55cacf188bd679c9d1e11 Mon Sep 17 00:00:00 2001
From: Sergio Bertolin <sbertolin@solidgear.es>
Date: Thu, 26 Nov 2015 13:19:49 +0000
Subject: [PATCH] Added test case about a user without a share requesting it

---
 build/integration/features/sharing-v1.feature | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/build/integration/features/sharing-v1.feature b/build/integration/features/sharing-v1.feature
index 063a40b1d3c..32bb943d2d7 100644
--- a/build/integration/features/sharing-v1.feature
+++ b/build/integration/features/sharing-v1.feature
@@ -353,6 +353,16 @@ Feature: sharing
     Then the OCS status code should be "404"
     And the HTTP status code should be "200"
 
+  Scenario: Get a share with a user which didn't received the share 
+    Given user "user0" exists
+    And user "user1" exists
+    And user "user2" exists
+    And file "textfile0.txt" from user "user0" is shared with user "user1"
+    And As an "user2"
+    When Getting info of last share 
+    Then the OCS status code should be "404" 
+    And the HTTP status code should be "200"
+
   Scenario: Delete all group shares
     Given As an "admin"
     And user "user0" exists
-- 
GitLab