Arthur Schiwon
638ae9dcb3
style(PHP): adapt to coding-style bump
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2024-10-17 09:45:34 +02:00
Arthur Schiwon
8a19a0ed6a
ci: add psalm
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2024-10-16 16:42:31 +02:00
Arthur Schiwon
74f3fa7c8e
build(deps): scope dependencies with php-scoper
...
- needs php-scoper at 0.17.0 for successful run on PHP 8.0
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2024-01-11 11:35:58 +01:00
Arthur Schiwon
52db7be1f8
test(integration): fix php setup, resolve run script
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2023-12-15 23:04:28 +01:00
Arthur Schiwon
cbe0320f9f
test(unit): fix passing null to explode
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2023-12-15 22:37:05 +01:00
Arthur Schiwon
7c261c928e
tests(unit): fix passing deprecated value to new \DateTime();
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2023-12-15 13:15:45 +01:00
dependabot[bot]
a923beeed0
Bump guzzlehttp/psr7 from 2.4.0 to 2.5.0 in /tests/Integration
...
Bumps [guzzlehttp/psr7](https://github.com/guzzle/psr7 ) from 2.4.0 to 2.5.0.
- [Release notes](https://github.com/guzzle/psr7/releases )
- [Changelog](https://github.com/guzzle/psr7/blob/2.5/CHANGELOG.md )
- [Commits](https://github.com/guzzle/psr7/compare/2.4.0...2.5.0 )
---
updated-dependencies:
- dependency-name: guzzlehttp/psr7
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-19 20:04:40 +00:00
Arthur Schiwon
145dc09175
SP files are case insensitive. Lowercasing the url may save requests.
...
- this reduces per page requests from 9 to up to three for Rich Workspaces, which are testing for three variations of readme.md
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2023-03-06 19:53:06 +01:00
Arthur Schiwon
8b3997a09e
fix handling of sharepoint error codes
...
- with older versions of phpSPO we had to introspect the stack to find
the error code
- meanwhile a RequestException with the response message (containing
sharepoint error) and HTTP result code is returned
- the code is adjusted to use the HTTP code first, and as fallback
interpret the proprietary code
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2023-02-14 11:40:02 +01:00
Arthur Schiwon
3c7bd1da78
use download capability of phpSPO
...
…instead of a re-implementation that is problematic with some special characters
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2023-02-03 14:01:09 +01:00
Arthur Schiwon
3c8a6304e6
code style
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2023-01-27 10:39:40 +01:00
Arthur Schiwon
aaa0b215f6
add integration test to ensure credentials are not logged in plain text
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-07-29 15:28:30 +02:00
Arthur Schiwon
652d94fcb4
fix test
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-04-11 23:12:35 +02:00
Arthur Schiwon
b43bd4ba66
fix use of deleted RequestsWrapper in tests
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-04-11 22:04:30 +02:00
Côme Chilliet
377d1915ab
Fix typo in use line
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-04-11 21:56:56 +02:00
Joas Schilling
ceb020bf03
Update master php testing versions
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-11 19:46:42 +00:00
Arthur Schiwon
2edaf65b71
Bump phpSPO to 2.4, brings 2019 support
...
* adjusts to namespace changes
* adjusts to simplified client context and auth mechanism
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-01-28 15:19:03 +01:00
Arthur Schiwon
c6c0c0e9dc
dig out error code from last reponse instead of relying on message
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-03-29 15:35:24 +02:00
Arthur Schiwon
fb218a2938
extend tests
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-03-24 11:12:10 +01:00
Arthur Schiwon
1fec6a6adb
Do not depend on sharepoint error messages
...
- they are localized
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-03-05 17:43:15 +01:00
Arthur Schiwon
941104584a
code style fixes
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-03-05 15:41:28 +01:00
Arthur Schiwon
b714c50bc9
fix silently (18+) failing unit tests
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2020-05-13 14:28:02 +02:00
Arthur Schiwon
c5f6c3d9a3
adjust tests
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2020-05-07 23:22:05 +02:00
Arthur Schiwon
7c7a76e287
poc 365 changes
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2020-05-07 23:17:58 +02:00
Joas Schilling
06a290aee7
Update master php testing versions
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-12-05 13:22:15 +01:00
Arthur Schiwon
7836c7b177
fix error handling
...
* error messages may be localised, thus digging out the code
* when request Name attribute from arbitrary name, FileNotFound will not
be returned. This caused folder creation to fail.
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-04-05 21:53:48 +02:00
Arthur Schiwon
3bf1b178c6
improve identifying hidden dirs, fix crash on 2013 when entering empty dirs
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-03-26 12:32:27 +01:00
Arthur Schiwon
a2cd061d09
add command to find available document libraries
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-01-09 00:39:36 +01:00
Arthur Schiwon
311c020e60
remove deprecated require
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2018-08-01 18:28:25 +02:00
Arthur Schiwon
d2563ef495
configure travis
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2018-01-18 16:32:51 +01:00
Arthur Schiwon
9f956ae47d
and also push the tests
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2017-04-26 17:01:55 +02:00
Arthur Schiwon
cd07744af0
commit skeletion
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2017-04-26 15:09:54 +02:00