summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/BackgroundJob
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2019-07-02 18:11:05 +0200
committerGeorg Ehrke <developer@georgehrke.com>2019-07-02 20:04:54 +0200
commit089a421ecec1c5c51b9811ff24ec0035d4e604c1 (patch)
tree0ab93f5446ba446aacb8ea09019a465c2153e1f9 /apps/dav/tests/unit/BackgroundJob
parent23bcb715ebedb60c538511d5f307a39f56a71a34 (diff)
downloadnextcloud-server-089a421ecec1c5c51b9811ff24ec0035d4e604c1.tar.gz
nextcloud-server-089a421ecec1c5c51b9811ff24ec0035d4e604c1.zip
RefreshWebcalJob: replace ugly Regex with standard php utils
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/tests/unit/BackgroundJob')
-rw-r--r--apps/dav/tests/unit/BackgroundJob/RefreshWebcalJobTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/dav/tests/unit/BackgroundJob/RefreshWebcalJobTest.php b/apps/dav/tests/unit/BackgroundJob/RefreshWebcalJobTest.php
index b7cee2c884d..8e24fb1f638 100644
--- a/apps/dav/tests/unit/BackgroundJob/RefreshWebcalJobTest.php
+++ b/apps/dav/tests/unit/BackgroundJob/RefreshWebcalJobTest.php
@@ -231,8 +231,14 @@ class RefreshWebcalJobTest extends TestCase {
public function runLocalURLDataProvider():array {
return [
['localhost/foo.bar'],
+ ['localHost/foo.bar'],
+ ['random-host/foo.bar'],
['[::1]/bla.blub'],
+ ['[::]/bla.blub'],
['192.168.0.1'],
+ ['172.16.42.1'],
+ ['[fdf8:f53b:82e4::53]/secret.ics'],
+ ['[fe80::200:5aee:feaa:20a2]/secret.ics'],
['10.0.0.1'],
['another-host.local'],
['service.localhost'],