Joas Schilling
dfde04291e
Move share interfaces to own files so they can be autoloaded
il y a 9 ans
Joas Schilling
2c39aec8cb
Replace deprecated constant with new class constant
il y a 9 ans
Bjoern Schiessle
a7ebfe87c9
also check for the correct owner if it was submitted
il y a 9 ans
Miguel Prokop
397f14ed86
Consolidate if statement, and update unit test
il y a 9 ans
Joas Schilling
6202ca33ba
Make remaining files extend the test base
il y a 9 ans
Bjoern Schiessle
01c50d242b
use the new base class for unit tests
il y a 9 ans
Bjoern Schiessle
5192641447
make sure that we don't find the wrong shares if a user and a group have the same ID
il y a 9 ans
Bernhard Reiter
7e9baafc53
Add option to include tags for shared items.
il y a 9 ans
Bjoern Schiessle
72319bbc98
fix unit tests
il y a 9 ans
Bjoern Schiessle
9105e17307
unit tests for grouping of shares pointing to the same source
il y a 10 ans
Jörn Friedrich Dreyer
f551917a3c
kill OC::$session
maintain deprecated \OC::$session when getting or setting the session via the server container or UserSession
restore order os OC::$session and OC::$CLI
remove unneded initialization of dummy session
write back session when $useCustomSession is true
log warning when deprecated app is used
il y a 10 ans
Michael Kuhn
0a77a5ec19
Add unit tests for new unshareFromSelf() functionality.
il y a 10 ans
Bjoern Schiessle
67e302885c
remove share permission if user is excluded from sharing
il y a 10 ans
Bjoern Schiessle
1bba266417
add unit test
il y a 10 ans
Bjoern Schiessle
ecc1f92bb6
add OCS api call to set expire date for link shares
il y a 10 ans
Bjoern Schiessle
f15d7dfec0
only expire link shares
il y a 10 ans
Bjoern Schiessle
6578f00b4b
unify share settings
il y a 10 ans
Bjoern Schiessle
6650be9913
add setting to set default expire date
il y a 10 ans
Bjoern Schiessle
bc0292c16d
always return an array
il y a 10 ans
Bjoern Schiessle
cf7ef0d356
fix sharing unit tests
il y a 10 ans
Scrutinizer Auto-Fixer
adaee6a5a1
Scrutinizer Auto-Fixes
This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/owncloud/core/inspections/cdfecc4e-a37e-4233-8025-f0d7252a8720
Enabled analysis tools:
- PHP Analyzer
- JSHint
- PHP Copy/Paste Detector
- PHP PDepend
il y a 10 ans
Arthur Schiwon
72f134cfce
intendation
il y a 10 ans
Arthur Schiwon
32afdcbefe
Inject logger
il y a 10 ans
Arthur Schiwon
9a39cd3b38
test for share dialoge sorter
il y a 10 ans
Thomas Müller
a3ea5aa2ac
fixing comment + adding unit test for checkPasswordProtectedShare
il y a 10 ans
ben-denham
30f77f53d5
updated the unit test for OCP\Share::unshareAll() to verify that shares by all users are removed for an item.
il y a 10 ans
Andreas Fischer
8872b881cc
Add tests for OCP\Share::unshareAll().
il y a 10 ans
Andreas Fischer
07714d9a72
Tests whether expired/valid link share is still accessible.
il y a 10 ans
Andreas Fischer
294f3632e0
Calculate dateInPast and dateInFuture.
il y a 10 ans
Andreas Fischer
261766fe49
Add comment explaining how $dateInFuture was picked.
il y a 10 ans
Andreas Fischer
f567bd1b8a
Coding style: { for methods start are supposed to be on the same line.
il y a 10 ans
Andreas Fischer
fb650deaf7
Expiration tests for sharing with groups.
il y a 10 ans
Andreas Fischer
cf97eac401
Do not repeat shareUserOneTestFileWithUserTwo() code.
il y a 10 ans
Andreas Fischer
e4b334c3f1
Make dates test class properties.
il y a 10 ans
Andreas Fischer
924a7046dd
Try to make Oracle happy by also specifying seconds.
il y a 10 ans
Andreas Fischer
1358b0078a
Test whether a still-valid user share is still accessible.
il y a 10 ans
Andreas Fischer
05c970095d
Test whether an expired user share is still accessible.
il y a 10 ans
Michael Gapczynski
9a2ca0ae64
Check resharing setting
il y a 11 ans
Thomas Mueller
ef88ceba8c
drop SimpleTest compatibility
il y a 11 ans
Bart Visscher
8bed38c78d
Rename install hook functions to register hook
il y a 11 ans
Bart Visscher
530f3f8be9
Create functions to install standard hooks
Also use these in tests that needs them
Fix #151
il y a 11 ans
Thomas Tanghus
56239df2e7
Update all to use OCP\PERMISSION_* instead of OCP\Share::PERMISSION_*
il y a 11 ans
Felix Moeller
a4b2ea586d
Style: Remove all the dangling white spaces
il y a 11 ans
Sam Tuke
8b01286a5d
Merged branch 'master'
il y a 11 ans
Bart Visscher
3fef4564f0
Give share test users a unique prefix
il y a 11 ans
Bart Visscher
95c8adba19
Swap values for assertEqual to get better error message, also renamed the function to phpunit name
il y a 11 ans
Bart Visscher
8c281a456d
PHPUnit 3.6 does not support @expectedException with the generic exception class
il y a 11 ans
Robin Appelman
7b64ab9294
make sure the share backend test case can find the correct interface
il y a 11 ans
Michael Gapczynski
dc767798c6
Manually change appconfig value for share policy so tests work correctly
il y a 11 ans
Robin Appelman
22f8f50e05
initual phpunit support
il y a 11 ans