aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-09-19 11:10:31 +0200
committerprovokateurin <kate@provokateurin.de>2024-09-19 14:21:20 +0200
commit9836e9b16484582d309c8437ab46d82e34956941 (patch)
treed3da87bb7dfd1a8877ed25072ecf609def844089 /apps/dav/tests/unit
parent8c60ffa0f21414e6e671c567d664a9b9e5253e26 (diff)
downloadnextcloud-server-9836e9b16484582d309c8437ab46d82e34956941.tar.gz
nextcloud-server-9836e9b16484582d309c8437ab46d82e34956941.zip
chore(deps): Update nextcloud/coding-standard to v1.3.1
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'apps/dav/tests/unit')
-rw-r--r--apps/dav/tests/unit/CalDAV/Schedule/PluginTest.php4
-rw-r--r--apps/dav/tests/unit/CardDAV/CardDavBackendTest.php48
-rw-r--r--apps/dav/tests/unit/Command/DeleteCalendarTest.php2
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php2
-rw-r--r--apps/dav/tests/unit/Controller/DirectControllerTest.php2
-rw-r--r--apps/dav/tests/unit/DAV/GroupPrincipalTest.php2
-rw-r--r--apps/dav/tests/unit/Files/MultipartRequestParserTest.php10
-rw-r--r--apps/dav/tests/unit/Search/ContactsSearchProviderTest.php28
-rw-r--r--apps/dav/tests/unit/Search/EventsSearchProviderTest.php312
-rw-r--r--apps/dav/tests/unit/Search/TasksSearchProviderTest.php98
-rw-r--r--apps/dav/tests/unit/bootstrap.php2
11 files changed, 255 insertions, 255 deletions
diff --git a/apps/dav/tests/unit/CalDAV/Schedule/PluginTest.php b/apps/dav/tests/unit/CalDAV/Schedule/PluginTest.php
index 8d98a765fc1..06261ca6fa5 100644
--- a/apps/dav/tests/unit/CalDAV/Schedule/PluginTest.php
+++ b/apps/dav/tests/unit/CalDAV/Schedule/PluginTest.php
@@ -380,7 +380,7 @@ class PluginTest extends TestCase {
$this->server->expects($this->once())
->method('getPropertiesForPath')
- ->with($calendarHome .'/' . $calendarUri, [], 1)
+ ->with($calendarHome . '/' . $calendarUri, [], 1)
->willReturn($properties);
$this->plugin->propFindDefaultCalendarUrl($propFind, $node);
@@ -392,7 +392,7 @@ class PluginTest extends TestCase {
/** @var LocalHref $result */
$result = $propFind->get(Plugin::SCHEDULE_DEFAULT_CALENDAR_URL);
- $this->assertEquals('/remote.php/dav/'. $calendarHome . '/' . $calendarUri, $result->getHref());
+ $this->assertEquals('/remote.php/dav/' . $calendarHome . '/' . $calendarUri, $result->getHref());
}
/**
diff --git a/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php b/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
index 91d7cc5f49e..96968909d1c 100644
--- a/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
+++ b/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
@@ -72,35 +72,35 @@ class CardDavBackendTest extends TestCase {
public const UNIT_TEST_USER1 = 'principals/users/carddav-unit-test1';
public const UNIT_TEST_GROUP = 'principals/groups/carddav-unit-test-group';
- private $vcardTest0 = 'BEGIN:VCARD'.PHP_EOL.
- 'VERSION:3.0'.PHP_EOL.
- 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN'.PHP_EOL.
- 'UID:Test'.PHP_EOL.
- 'FN:Test'.PHP_EOL.
- 'N:Test;;;;'.PHP_EOL.
+ private $vcardTest0 = 'BEGIN:VCARD' . PHP_EOL .
+ 'VERSION:3.0' . PHP_EOL .
+ 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN' . PHP_EOL .
+ 'UID:Test' . PHP_EOL .
+ 'FN:Test' . PHP_EOL .
+ 'N:Test;;;;' . PHP_EOL .
'END:VCARD';
- private $vcardTest1 = 'BEGIN:VCARD'.PHP_EOL.
- 'VERSION:3.0'.PHP_EOL.
- 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN'.PHP_EOL.
- 'UID:Test2'.PHP_EOL.
- 'FN:Test2'.PHP_EOL.
- 'N:Test2;;;;'.PHP_EOL.
+ private $vcardTest1 = 'BEGIN:VCARD' . PHP_EOL .
+ 'VERSION:3.0' . PHP_EOL .
+ 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN' . PHP_EOL .
+ 'UID:Test2' . PHP_EOL .
+ 'FN:Test2' . PHP_EOL .
+ 'N:Test2;;;;' . PHP_EOL .
'END:VCARD';
- private $vcardTest2 = 'BEGIN:VCARD'.PHP_EOL.
- 'VERSION:3.0'.PHP_EOL.
- 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN'.PHP_EOL.
- 'UID:Test3'.PHP_EOL.
- 'FN:Test3'.PHP_EOL.
- 'N:Test3;;;;'.PHP_EOL.
+ private $vcardTest2 = 'BEGIN:VCARD' . PHP_EOL .
+ 'VERSION:3.0' . PHP_EOL .
+ 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN' . PHP_EOL .
+ 'UID:Test3' . PHP_EOL .
+ 'FN:Test3' . PHP_EOL .
+ 'N:Test3;;;;' . PHP_EOL .
'END:VCARD';
- private $vcardTestNoUID = 'BEGIN:VCARD'.PHP_EOL.
- 'VERSION:3.0'.PHP_EOL.
- 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN'.PHP_EOL.
- 'FN:TestNoUID'.PHP_EOL.
- 'N:TestNoUID;;;;'.PHP_EOL.
+ private $vcardTestNoUID = 'BEGIN:VCARD' . PHP_EOL .
+ 'VERSION:3.0' . PHP_EOL .
+ 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN' . PHP_EOL .
+ 'FN:TestNoUID' . PHP_EOL .
+ 'N:TestNoUID;;;;' . PHP_EOL .
'END:VCARD';
protected function setUp(): void {
@@ -332,7 +332,7 @@ class CardDavBackendTest extends TestCase {
$this->assertArrayHasKey('lastmodified', $card);
$this->assertArrayHasKey('etag', $card);
$this->assertArrayHasKey('size', $card);
- $this->assertEquals($this->{ 'vcardTest'.($index + 1) }, $card['carddata']);
+ $this->assertEquals($this->{ 'vcardTest' . ($index + 1) }, $card['carddata']);
}
// delete the card
diff --git a/apps/dav/tests/unit/Command/DeleteCalendarTest.php b/apps/dav/tests/unit/Command/DeleteCalendarTest.php
index 583673c9d30..b621e6737d5 100644
--- a/apps/dav/tests/unit/Command/DeleteCalendarTest.php
+++ b/apps/dav/tests/unit/Command/DeleteCalendarTest.php
@@ -100,7 +100,7 @@ class DeleteCalendarTest extends TestCase {
public function testInvalidCalendar(): void {
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage(
- 'User <' . self::USER . '> has no calendar named <' . self::NAME . '>.');
+ 'User <' . self::USER . '> has no calendar named <' . self::NAME . '>.');
$this->userManager->expects($this->once())
->method('userExists')
diff --git a/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php b/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php
index 5010f7698b5..4f2e5174325 100644
--- a/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php
@@ -127,7 +127,7 @@ class ObjectTreeTest extends \Test\TestCase {
$inputFileName,
$fileInfoQueryPath,
$outputFileName,
- $type
+ $type,
): void {
$rootNode = $this->getMockBuilder(Directory::class)
->disableOriginalConstructor()
diff --git a/apps/dav/tests/unit/Controller/DirectControllerTest.php b/apps/dav/tests/unit/Controller/DirectControllerTest.php
index 2476681251c..faaf67d266b 100644
--- a/apps/dav/tests/unit/Controller/DirectControllerTest.php
+++ b/apps/dav/tests/unit/Controller/DirectControllerTest.php
@@ -136,7 +136,7 @@ class DirectControllerTest extends TestCase {
$this->urlGenerator->method('getAbsoluteURL')
->willReturnCallback(function (string $url) {
- return 'https://my.nextcloud/'.$url;
+ return 'https://my.nextcloud/' . $url;
});
$result = $this->controller->getUrl(101);
diff --git a/apps/dav/tests/unit/DAV/GroupPrincipalTest.php b/apps/dav/tests/unit/DAV/GroupPrincipalTest.php
index 92c89fc62f8..bfc4c5b2493 100644
--- a/apps/dav/tests/unit/DAV/GroupPrincipalTest.php
+++ b/apps/dav/tests/unit/DAV/GroupPrincipalTest.php
@@ -349,7 +349,7 @@ class GroupPrincipalTest extends \Test\TestCase {
$fooGroup
->expects($this->exactly(1))
->method('getDisplayName')
- ->willReturn('Group '.$gid);
+ ->willReturn('Group ' . $gid);
return $fooGroup;
}
}
diff --git a/apps/dav/tests/unit/Files/MultipartRequestParserTest.php b/apps/dav/tests/unit/Files/MultipartRequestParserTest.php
index ebe2a0b172e..e6325ab8ad1 100644
--- a/apps/dav/tests/unit/Files/MultipartRequestParserTest.php
+++ b/apps/dav/tests/unit/Files/MultipartRequestParserTest.php
@@ -36,7 +36,7 @@ class MultipartRequestParserTest extends TestCase {
->disableOriginalConstructor()
->getMock();
- $headers = array_merge(['Content-Type' => 'multipart/related; boundary='.$boundary], $headers);
+ $headers = array_merge(['Content-Type' => 'multipart/related; boundary=' . $boundary], $headers);
$request->expects($this->any())
->method('getHeader')
->willReturnCallback(function (string $key) use (&$headers) {
@@ -45,17 +45,17 @@ class MultipartRequestParserTest extends TestCase {
$body = '';
foreach ($parts as $part) {
- $body .= '--'.$boundary."\r\n";
+ $body .= '--' . $boundary . "\r\n";
foreach ($part['headers'] as $headerKey => $headerPart) {
- $body .= $headerKey.': '.$headerPart."\r\n";
+ $body .= $headerKey . ': ' . $headerPart . "\r\n";
}
$body .= "\r\n";
- $body .= $part['content']."\r\n";
+ $body .= $part['content'] . "\r\n";
}
- $body .= '--'.$boundary.'--';
+ $body .= '--' . $boundary . '--';
$stream = fopen('php://temp', 'r+');
fwrite($stream, $body);
diff --git a/apps/dav/tests/unit/Search/ContactsSearchProviderTest.php b/apps/dav/tests/unit/Search/ContactsSearchProviderTest.php
index bfc57dc61d7..0a83d238f0f 100644
--- a/apps/dav/tests/unit/Search/ContactsSearchProviderTest.php
+++ b/apps/dav/tests/unit/Search/ContactsSearchProviderTest.php
@@ -37,22 +37,22 @@ class ContactsSearchProviderTest extends TestCase {
/** @var ContactsSearchProvider */
private $provider;
- private $vcardTest0 = 'BEGIN:VCARD'.PHP_EOL.
- 'VERSION:3.0'.PHP_EOL.
- 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN'.PHP_EOL.
- 'UID:Test'.PHP_EOL.
- 'FN:FN of Test'.PHP_EOL.
- 'N:Test;;;;'.PHP_EOL.
- 'EMAIL:forrestgump@example.com'.PHP_EOL.
+ private $vcardTest0 = 'BEGIN:VCARD' . PHP_EOL .
+ 'VERSION:3.0' . PHP_EOL .
+ 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN' . PHP_EOL .
+ 'UID:Test' . PHP_EOL .
+ 'FN:FN of Test' . PHP_EOL .
+ 'N:Test;;;;' . PHP_EOL .
+ 'EMAIL:forrestgump@example.com' . PHP_EOL .
'END:VCARD';
- private $vcardTest1 = 'BEGIN:VCARD'.PHP_EOL.
- 'VERSION:3.0'.PHP_EOL.
- 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN'.PHP_EOL.
- 'PHOTO;ENCODING=b;TYPE=image/jpeg:'.PHP_EOL.
- 'UID:Test2'.PHP_EOL.
- 'FN:FN of Test2'.PHP_EOL.
- 'N:Test2;;;;'.PHP_EOL.
+ private $vcardTest1 = 'BEGIN:VCARD' . PHP_EOL .
+ 'VERSION:3.0' . PHP_EOL .
+ 'PRODID:-//Sabre//Sabre VObject 4.1.2//EN' . PHP_EOL .
+ 'PHOTO;ENCODING=b;TYPE=image/jpeg:' . PHP_EOL .
+ 'UID:Test2' . PHP_EOL .
+ 'FN:FN of Test2' . PHP_EOL .
+ 'N:Test2;;;;' . PHP_EOL .
'END:VCARD';
protected function setUp(): void {
diff --git a/apps/dav/tests/unit/Search/EventsSearchProviderTest.php b/apps/dav/tests/unit/Search/EventsSearchProviderTest.php
index d194b7fa7c6..0eafe0782e5 100644
--- a/apps/dav/tests/unit/Search/EventsSearchProviderTest.php
+++ b/apps/dav/tests/unit/Search/EventsSearchProviderTest.php
@@ -38,183 +38,183 @@ class EventsSearchProviderTest extends TestCase {
private $provider;
// NO SUMMARY
- private $vEvent0 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'PRODID:-//Apple Inc.//Mac OS X 10.11.6//EN'.PHP_EOL.
- 'CALSCALE:GREGORIAN'.PHP_EOL.
- 'BEGIN:VEVENT'.PHP_EOL.
- 'CREATED:20161004T144433Z'.PHP_EOL.
- 'UID:85560E76-1B0D-47E1-A735-21625767FCA4'.PHP_EOL.
- 'DTEND;VALUE=DATE:20161008'.PHP_EOL.
- 'TRANSP:TRANSPARENT'.PHP_EOL.
- 'DTSTART;VALUE=DATE:20161005'.PHP_EOL.
- 'DTSTAMP:20161004T144437Z'.PHP_EOL.
- 'SEQUENCE:0'.PHP_EOL.
- 'END:VEVENT'.PHP_EOL.
+ private $vEvent0 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'PRODID:-//Apple Inc.//Mac OS X 10.11.6//EN' . PHP_EOL .
+ 'CALSCALE:GREGORIAN' . PHP_EOL .
+ 'BEGIN:VEVENT' . PHP_EOL .
+ 'CREATED:20161004T144433Z' . PHP_EOL .
+ 'UID:85560E76-1B0D-47E1-A735-21625767FCA4' . PHP_EOL .
+ 'DTEND;VALUE=DATE:20161008' . PHP_EOL .
+ 'TRANSP:TRANSPARENT' . PHP_EOL .
+ 'DTSTART;VALUE=DATE:20161005' . PHP_EOL .
+ 'DTSTAMP:20161004T144437Z' . PHP_EOL .
+ 'SEQUENCE:0' . PHP_EOL .
+ 'END:VEVENT' . PHP_EOL .
'END:VCALENDAR';
// TIMED SAME DAY
- private $vEvent1 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'PRODID:-//Tests//'.PHP_EOL.
- 'CALSCALE:GREGORIAN'.PHP_EOL.
- 'BEGIN:VTIMEZONE'.PHP_EOL.
- 'TZID:Europe/Berlin'.PHP_EOL.
- 'BEGIN:DAYLIGHT'.PHP_EOL.
- 'TZOFFSETFROM:+0100'.PHP_EOL.
- 'RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU'.PHP_EOL.
- 'DTSTART:19810329T020000'.PHP_EOL.
- 'TZNAME:GMT+2'.PHP_EOL.
- 'TZOFFSETTO:+0200'.PHP_EOL.
- 'END:DAYLIGHT'.PHP_EOL.
- 'BEGIN:STANDARD'.PHP_EOL.
- 'TZOFFSETFROM:+0200'.PHP_EOL.
- 'RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU'.PHP_EOL.
- 'DTSTART:19961027T030000'.PHP_EOL.
- 'TZNAME:GMT+1'.PHP_EOL.
- 'TZOFFSETTO:+0100'.PHP_EOL.
- 'END:STANDARD'.PHP_EOL.
- 'END:VTIMEZONE'.PHP_EOL.
- 'BEGIN:VEVENT'.PHP_EOL.
- 'CREATED:20160809T163629Z'.PHP_EOL.
- 'UID:0AD16F58-01B3-463B-A215-FD09FC729A02'.PHP_EOL.
- 'DTEND;TZID=Europe/Berlin:20160816T100000'.PHP_EOL.
- 'TRANSP:OPAQUE'.PHP_EOL.
- 'SUMMARY:Test Europe Berlin'.PHP_EOL.
- 'DTSTART;TZID=Europe/Berlin:20160816T090000'.PHP_EOL.
- 'DTSTAMP:20160809T163632Z'.PHP_EOL.
- 'SEQUENCE:0'.PHP_EOL.
- 'END:VEVENT'.PHP_EOL.
+ private $vEvent1 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'PRODID:-//Tests//' . PHP_EOL .
+ 'CALSCALE:GREGORIAN' . PHP_EOL .
+ 'BEGIN:VTIMEZONE' . PHP_EOL .
+ 'TZID:Europe/Berlin' . PHP_EOL .
+ 'BEGIN:DAYLIGHT' . PHP_EOL .
+ 'TZOFFSETFROM:+0100' . PHP_EOL .
+ 'RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU' . PHP_EOL .
+ 'DTSTART:19810329T020000' . PHP_EOL .
+ 'TZNAME:GMT+2' . PHP_EOL .
+ 'TZOFFSETTO:+0200' . PHP_EOL .
+ 'END:DAYLIGHT' . PHP_EOL .
+ 'BEGIN:STANDARD' . PHP_EOL .
+ 'TZOFFSETFROM:+0200' . PHP_EOL .
+ 'RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU' . PHP_EOL .
+ 'DTSTART:19961027T030000' . PHP_EOL .
+ 'TZNAME:GMT+1' . PHP_EOL .
+ 'TZOFFSETTO:+0100' . PHP_EOL .
+ 'END:STANDARD' . PHP_EOL .
+ 'END:VTIMEZONE' . PHP_EOL .
+ 'BEGIN:VEVENT' . PHP_EOL .
+ 'CREATED:20160809T163629Z' . PHP_EOL .
+ 'UID:0AD16F58-01B3-463B-A215-FD09FC729A02' . PHP_EOL .
+ 'DTEND;TZID=Europe/Berlin:20160816T100000' . PHP_EOL .
+ 'TRANSP:OPAQUE' . PHP_EOL .
+ 'SUMMARY:Test Europe Berlin' . PHP_EOL .
+ 'DTSTART;TZID=Europe/Berlin:20160816T090000' . PHP_EOL .
+ 'DTSTAMP:20160809T163632Z' . PHP_EOL .
+ 'SEQUENCE:0' . PHP_EOL .
+ 'END:VEVENT' . PHP_EOL .
'END:VCALENDAR';
// TIMED DIFFERENT DAY
- private $vEvent2 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'PRODID:-//Tests//'.PHP_EOL.
- 'CALSCALE:GREGORIAN'.PHP_EOL.
- 'BEGIN:VTIMEZONE'.PHP_EOL.
- 'TZID:Europe/Berlin'.PHP_EOL.
- 'BEGIN:DAYLIGHT'.PHP_EOL.
- 'TZOFFSETFROM:+0100'.PHP_EOL.
- 'RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU'.PHP_EOL.
- 'DTSTART:19810329T020000'.PHP_EOL.
- 'TZNAME:GMT+2'.PHP_EOL.
- 'TZOFFSETTO:+0200'.PHP_EOL.
- 'END:DAYLIGHT'.PHP_EOL.
- 'BEGIN:STANDARD'.PHP_EOL.
- 'TZOFFSETFROM:+0200'.PHP_EOL.
- 'RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU'.PHP_EOL.
- 'DTSTART:19961027T030000'.PHP_EOL.
- 'TZNAME:GMT+1'.PHP_EOL.
- 'TZOFFSETTO:+0100'.PHP_EOL.
- 'END:STANDARD'.PHP_EOL.
- 'END:VTIMEZONE'.PHP_EOL.
- 'BEGIN:VEVENT'.PHP_EOL.
- 'CREATED:20160809T163629Z'.PHP_EOL.
- 'UID:0AD16F58-01B3-463B-A215-FD09FC729A02'.PHP_EOL.
- 'DTEND;TZID=Europe/Berlin:20160817T100000'.PHP_EOL.
- 'TRANSP:OPAQUE'.PHP_EOL.
- 'SUMMARY:Test Europe Berlin'.PHP_EOL.
- 'DTSTART;TZID=Europe/Berlin:20160816T090000'.PHP_EOL.
- 'DTSTAMP:20160809T163632Z'.PHP_EOL.
- 'SEQUENCE:0'.PHP_EOL.
- 'END:VEVENT'.PHP_EOL.
+ private $vEvent2 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'PRODID:-//Tests//' . PHP_EOL .
+ 'CALSCALE:GREGORIAN' . PHP_EOL .
+ 'BEGIN:VTIMEZONE' . PHP_EOL .
+ 'TZID:Europe/Berlin' . PHP_EOL .
+ 'BEGIN:DAYLIGHT' . PHP_EOL .
+ 'TZOFFSETFROM:+0100' . PHP_EOL .
+ 'RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU' . PHP_EOL .
+ 'DTSTART:19810329T020000' . PHP_EOL .
+ 'TZNAME:GMT+2' . PHP_EOL .
+ 'TZOFFSETTO:+0200' . PHP_EOL .
+ 'END:DAYLIGHT' . PHP_EOL .
+ 'BEGIN:STANDARD' . PHP_EOL .
+ 'TZOFFSETFROM:+0200' . PHP_EOL .
+ 'RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU' . PHP_EOL .
+ 'DTSTART:19961027T030000' . PHP_EOL .
+ 'TZNAME:GMT+1' . PHP_EOL .
+ 'TZOFFSETTO:+0100' . PHP_EOL .
+ 'END:STANDARD' . PHP_EOL .
+ 'END:VTIMEZONE' . PHP_EOL .
+ 'BEGIN:VEVENT' . PHP_EOL .
+ 'CREATED:20160809T163629Z' . PHP_EOL .
+ 'UID:0AD16F58-01B3-463B-A215-FD09FC729A02' . PHP_EOL .
+ 'DTEND;TZID=Europe/Berlin:20160817T100000' . PHP_EOL .
+ 'TRANSP:OPAQUE' . PHP_EOL .
+ 'SUMMARY:Test Europe Berlin' . PHP_EOL .
+ 'DTSTART;TZID=Europe/Berlin:20160816T090000' . PHP_EOL .
+ 'DTSTAMP:20160809T163632Z' . PHP_EOL .
+ 'SEQUENCE:0' . PHP_EOL .
+ 'END:VEVENT' . PHP_EOL .
'END:VCALENDAR';
// ALL-DAY ONE-DAY
- private $vEvent3 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'PRODID:-//Apple Inc.//Mac OS X 10.11.6//EN'.PHP_EOL.
- 'CALSCALE:GREGORIAN'.PHP_EOL.
- 'BEGIN:VEVENT'.PHP_EOL.
- 'CREATED:20161004T144433Z'.PHP_EOL.
- 'UID:85560E76-1B0D-47E1-A735-21625767FCA4'.PHP_EOL.
- 'DTEND;VALUE=DATE:20161006'.PHP_EOL.
- 'TRANSP:TRANSPARENT'.PHP_EOL.
- 'DTSTART;VALUE=DATE:20161005'.PHP_EOL.
- 'DTSTAMP:20161004T144437Z'.PHP_EOL.
- 'SEQUENCE:0'.PHP_EOL.
- 'END:VEVENT'.PHP_EOL.
+ private $vEvent3 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'PRODID:-//Apple Inc.//Mac OS X 10.11.6//EN' . PHP_EOL .
+ 'CALSCALE:GREGORIAN' . PHP_EOL .
+ 'BEGIN:VEVENT' . PHP_EOL .
+ 'CREATED:20161004T144433Z' . PHP_EOL .
+ 'UID:85560E76-1B0D-47E1-A735-21625767FCA4' . PHP_EOL .
+ 'DTEND;VALUE=DATE:20161006' . PHP_EOL .
+ 'TRANSP:TRANSPARENT' . PHP_EOL .
+ 'DTSTART;VALUE=DATE:20161005' . PHP_EOL .
+ 'DTSTAMP:20161004T144437Z' . PHP_EOL .
+ 'SEQUENCE:0' . PHP_EOL .
+ 'END:VEVENT' . PHP_EOL .
'END:VCALENDAR';
// ALL-DAY MULTIPLE DAYS
- private $vEvent4 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'PRODID:-//Apple Inc.//Mac OS X 10.11.6//EN'.PHP_EOL.
- 'CALSCALE:GREGORIAN'.PHP_EOL.
- 'BEGIN:VEVENT'.PHP_EOL.
- 'CREATED:20161004T144433Z'.PHP_EOL.
- 'UID:85560E76-1B0D-47E1-A735-21625767FCA4'.PHP_EOL.
- 'DTEND;VALUE=DATE:20161008'.PHP_EOL.
- 'TRANSP:TRANSPARENT'.PHP_EOL.
- 'DTSTART;VALUE=DATE:20161005'.PHP_EOL.
- 'DTSTAMP:20161004T144437Z'.PHP_EOL.
- 'SEQUENCE:0'.PHP_EOL.
- 'END:VEVENT'.PHP_EOL.
+ private $vEvent4 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'PRODID:-//Apple Inc.//Mac OS X 10.11.6//EN' . PHP_EOL .
+ 'CALSCALE:GREGORIAN' . PHP_EOL .
+ 'BEGIN:VEVENT' . PHP_EOL .
+ 'CREATED:20161004T144433Z' . PHP_EOL .
+ 'UID:85560E76-1B0D-47E1-A735-21625767FCA4' . PHP_EOL .
+ 'DTEND;VALUE=DATE:20161008' . PHP_EOL .
+ 'TRANSP:TRANSPARENT' . PHP_EOL .
+ 'DTSTART;VALUE=DATE:20161005' . PHP_EOL .
+ 'DTSTAMP:20161004T144437Z' . PHP_EOL .
+ 'SEQUENCE:0' . PHP_EOL .
+ 'END:VEVENT' . PHP_EOL .
'END:VCALENDAR';
// DURATION
- private $vEvent5 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'PRODID:-//Apple Inc.//Mac OS X 10.11.6//EN'.PHP_EOL.
- 'CALSCALE:GREGORIAN'.PHP_EOL.
- 'BEGIN:VEVENT'.PHP_EOL.
- 'CREATED:20161004T144433Z'.PHP_EOL.
- 'UID:85560E76-1B0D-47E1-A735-21625767FCA4'.PHP_EOL.
- 'DURATION:P5D'.PHP_EOL.
- 'TRANSP:TRANSPARENT'.PHP_EOL.
- 'DTSTART;VALUE=DATE:20161005'.PHP_EOL.
- 'DTSTAMP:20161004T144437Z'.PHP_EOL.
- 'SEQUENCE:0'.PHP_EOL.
- 'END:VEVENT'.PHP_EOL.
+ private $vEvent5 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'PRODID:-//Apple Inc.//Mac OS X 10.11.6//EN' . PHP_EOL .
+ 'CALSCALE:GREGORIAN' . PHP_EOL .
+ 'BEGIN:VEVENT' . PHP_EOL .
+ 'CREATED:20161004T144433Z' . PHP_EOL .
+ 'UID:85560E76-1B0D-47E1-A735-21625767FCA4' . PHP_EOL .
+ 'DURATION:P5D' . PHP_EOL .
+ 'TRANSP:TRANSPARENT' . PHP_EOL .
+ 'DTSTART;VALUE=DATE:20161005' . PHP_EOL .
+ 'DTSTAMP:20161004T144437Z' . PHP_EOL .
+ 'SEQUENCE:0' . PHP_EOL .
+ 'END:VEVENT' . PHP_EOL .
'END:VCALENDAR';
// NO DTEND - DATE
- private $vEvent6 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'PRODID:-//Apple Inc.//Mac OS X 10.11.6//EN'.PHP_EOL.
- 'CALSCALE:GREGORIAN'.PHP_EOL.
- 'BEGIN:VEVENT'.PHP_EOL.
- 'CREATED:20161004T144433Z'.PHP_EOL.
- 'UID:85560E76-1B0D-47E1-A735-21625767FCA4'.PHP_EOL.
- 'TRANSP:TRANSPARENT'.PHP_EOL.
- 'DTSTART;VALUE=DATE:20161005'.PHP_EOL.
- 'DTSTAMP:20161004T144437Z'.PHP_EOL.
- 'SEQUENCE:0'.PHP_EOL.
- 'END:VEVENT'.PHP_EOL.
+ private $vEvent6 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'PRODID:-//Apple Inc.//Mac OS X 10.11.6//EN' . PHP_EOL .
+ 'CALSCALE:GREGORIAN' . PHP_EOL .
+ 'BEGIN:VEVENT' . PHP_EOL .
+ 'CREATED:20161004T144433Z' . PHP_EOL .
+ 'UID:85560E76-1B0D-47E1-A735-21625767FCA4' . PHP_EOL .
+ 'TRANSP:TRANSPARENT' . PHP_EOL .
+ 'DTSTART;VALUE=DATE:20161005' . PHP_EOL .
+ 'DTSTAMP:20161004T144437Z' . PHP_EOL .
+ 'SEQUENCE:0' . PHP_EOL .
+ 'END:VEVENT' . PHP_EOL .
'END:VCALENDAR';
// NO DTEND - DATE-TIME
- private $vEvent7 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'PRODID:-//Tests//'.PHP_EOL.
- 'CALSCALE:GREGORIAN'.PHP_EOL.
- 'BEGIN:VTIMEZONE'.PHP_EOL.
- 'TZID:Europe/Berlin'.PHP_EOL.
- 'BEGIN:DAYLIGHT'.PHP_EOL.
- 'TZOFFSETFROM:+0100'.PHP_EOL.
- 'RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU'.PHP_EOL.
- 'DTSTART:19810329T020000'.PHP_EOL.
- 'TZNAME:GMT+2'.PHP_EOL.
- 'TZOFFSETTO:+0200'.PHP_EOL.
- 'END:DAYLIGHT'.PHP_EOL.
- 'BEGIN:STANDARD'.PHP_EOL.
- 'TZOFFSETFROM:+0200'.PHP_EOL.
- 'RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU'.PHP_EOL.
- 'DTSTART:19961027T030000'.PHP_EOL.
- 'TZNAME:GMT+1'.PHP_EOL.
- 'TZOFFSETTO:+0100'.PHP_EOL.
- 'END:STANDARD'.PHP_EOL.
- 'END:VTIMEZONE'.PHP_EOL.
- 'BEGIN:VEVENT'.PHP_EOL.
- 'CREATED:20160809T163629Z'.PHP_EOL.
- 'UID:0AD16F58-01B3-463B-A215-FD09FC729A02'.PHP_EOL.
- 'TRANSP:OPAQUE'.PHP_EOL.
- 'SUMMARY:Test Europe Berlin'.PHP_EOL.
- 'DTSTART;TZID=Europe/Berlin:20160816T090000'.PHP_EOL.
- 'DTSTAMP:20160809T163632Z'.PHP_EOL.
- 'SEQUENCE:0'.PHP_EOL.
- 'END:VEVENT'.PHP_EOL.
+ private $vEvent7 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'PRODID:-//Tests//' . PHP_EOL .
+ 'CALSCALE:GREGORIAN' . PHP_EOL .
+ 'BEGIN:VTIMEZONE' . PHP_EOL .
+ 'TZID:Europe/Berlin' . PHP_EOL .
+ 'BEGIN:DAYLIGHT' . PHP_EOL .
+ 'TZOFFSETFROM:+0100' . PHP_EOL .
+ 'RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU' . PHP_EOL .
+ 'DTSTART:19810329T020000' . PHP_EOL .
+ 'TZNAME:GMT+2' . PHP_EOL .
+ 'TZOFFSETTO:+0200' . PHP_EOL .
+ 'END:DAYLIGHT' . PHP_EOL .
+ 'BEGIN:STANDARD' . PHP_EOL .
+ 'TZOFFSETFROM:+0200' . PHP_EOL .
+ 'RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU' . PHP_EOL .
+ 'DTSTART:19961027T030000' . PHP_EOL .
+ 'TZNAME:GMT+1' . PHP_EOL .
+ 'TZOFFSETTO:+0100' . PHP_EOL .
+ 'END:STANDARD' . PHP_EOL .
+ 'END:VTIMEZONE' . PHP_EOL .
+ 'BEGIN:VEVENT' . PHP_EOL .
+ 'CREATED:20160809T163629Z' . PHP_EOL .
+ 'UID:0AD16F58-01B3-463B-A215-FD09FC729A02' . PHP_EOL .
+ 'TRANSP:OPAQUE' . PHP_EOL .
+ 'SUMMARY:Test Europe Berlin' . PHP_EOL .
+ 'DTSTART;TZID=Europe/Berlin:20160816T090000' . PHP_EOL .
+ 'DTSTAMP:20160809T163632Z' . PHP_EOL .
+ 'SEQUENCE:0' . PHP_EOL .
+ 'END:VEVENT' . PHP_EOL .
'END:VCALENDAR';
protected function setUp(): void {
diff --git a/apps/dav/tests/unit/Search/TasksSearchProviderTest.php b/apps/dav/tests/unit/Search/TasksSearchProviderTest.php
index 18b6f0a5930..0b1bf1ba0d7 100644
--- a/apps/dav/tests/unit/Search/TasksSearchProviderTest.php
+++ b/apps/dav/tests/unit/Search/TasksSearchProviderTest.php
@@ -38,67 +38,67 @@ class TasksSearchProviderTest extends TestCase {
private $provider;
// NO DUE NOR COMPLETED NOR SUMMARY
- private $vTodo0 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'PRODID:TEST'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'BEGIN:VTODO'.PHP_EOL.
- 'UID:20070313T123432Z-456553@example.com'.PHP_EOL.
- 'DTSTAMP:20070313T123432Z'.PHP_EOL.
- 'STATUS:NEEDS-ACTION'.PHP_EOL.
- 'END:VTODO'.PHP_EOL.
+ private $vTodo0 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'PRODID:TEST' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'BEGIN:VTODO' . PHP_EOL .
+ 'UID:20070313T123432Z-456553@example.com' . PHP_EOL .
+ 'DTSTAMP:20070313T123432Z' . PHP_EOL .
+ 'STATUS:NEEDS-ACTION' . PHP_EOL .
+ 'END:VTODO' . PHP_EOL .
'END:VCALENDAR';
// DUE AND COMPLETED
- private $vTodo1 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'PRODID:TEST'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'BEGIN:VTODO'.PHP_EOL.
- 'UID:20070313T123432Z-456553@example.com'.PHP_EOL.
- 'DTSTAMP:20070313T123432Z'.PHP_EOL.
- 'COMPLETED:20070707T100000Z'.PHP_EOL.
- 'DUE;VALUE=DATE:20070501'.PHP_EOL.
- 'SUMMARY:Task title'.PHP_EOL.
- 'STATUS:NEEDS-ACTION'.PHP_EOL.
- 'END:VTODO'.PHP_EOL.
+ private $vTodo1 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'PRODID:TEST' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'BEGIN:VTODO' . PHP_EOL .
+ 'UID:20070313T123432Z-456553@example.com' . PHP_EOL .
+ 'DTSTAMP:20070313T123432Z' . PHP_EOL .
+ 'COMPLETED:20070707T100000Z' . PHP_EOL .
+ 'DUE;VALUE=DATE:20070501' . PHP_EOL .
+ 'SUMMARY:Task title' . PHP_EOL .
+ 'STATUS:NEEDS-ACTION' . PHP_EOL .
+ 'END:VTODO' . PHP_EOL .
'END:VCALENDAR';
// COMPLETED ONLY
- private $vTodo2 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'PRODID:TEST'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'BEGIN:VTODO'.PHP_EOL.
- 'UID:20070313T123432Z-456553@example.com'.PHP_EOL.
- 'DTSTAMP:20070313T123432Z'.PHP_EOL.
- 'COMPLETED:20070707T100000Z'.PHP_EOL.
- 'SUMMARY:Task title'.PHP_EOL.
- 'STATUS:NEEDS-ACTION'.PHP_EOL.
- 'END:VTODO'.PHP_EOL.
+ private $vTodo2 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'PRODID:TEST' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'BEGIN:VTODO' . PHP_EOL .
+ 'UID:20070313T123432Z-456553@example.com' . PHP_EOL .
+ 'DTSTAMP:20070313T123432Z' . PHP_EOL .
+ 'COMPLETED:20070707T100000Z' . PHP_EOL .
+ 'SUMMARY:Task title' . PHP_EOL .
+ 'STATUS:NEEDS-ACTION' . PHP_EOL .
+ 'END:VTODO' . PHP_EOL .
'END:VCALENDAR';
// DUE DATE
- private $vTodo3 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'PRODID:TEST'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'BEGIN:VTODO'.PHP_EOL.
- 'UID:20070313T123432Z-456553@example.com'.PHP_EOL.
- 'DTSTAMP:20070313T123432Z'.PHP_EOL.
- 'DUE;VALUE=DATE:20070501'.PHP_EOL.
- 'SUMMARY:Task title'.PHP_EOL.
- 'STATUS:NEEDS-ACTION'.PHP_EOL.
- 'END:VTODO'.PHP_EOL.
+ private $vTodo3 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'PRODID:TEST' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'BEGIN:VTODO' . PHP_EOL .
+ 'UID:20070313T123432Z-456553@example.com' . PHP_EOL .
+ 'DTSTAMP:20070313T123432Z' . PHP_EOL .
+ 'DUE;VALUE=DATE:20070501' . PHP_EOL .
+ 'SUMMARY:Task title' . PHP_EOL .
+ 'STATUS:NEEDS-ACTION' . PHP_EOL .
+ 'END:VTODO' . PHP_EOL .
'END:VCALENDAR';
// DUE DATETIME
- private $vTodo4 = 'BEGIN:VCALENDAR'.PHP_EOL.
- 'PRODID:TEST'.PHP_EOL.
- 'VERSION:2.0'.PHP_EOL.
- 'BEGIN:VTODO'.PHP_EOL.
- 'UID:20070313T123432Z-456553@example.com'.PHP_EOL.
- 'DTSTAMP:20070313T123432Z'.PHP_EOL.
- 'DUE:20070709T130000Z'.PHP_EOL.
- 'SUMMARY:Task title'.PHP_EOL.
- 'STATUS:NEEDS-ACTION'.PHP_EOL.
- 'END:VTODO'.PHP_EOL.
+ private $vTodo4 = 'BEGIN:VCALENDAR' . PHP_EOL .
+ 'PRODID:TEST' . PHP_EOL .
+ 'VERSION:2.0' . PHP_EOL .
+ 'BEGIN:VTODO' . PHP_EOL .
+ 'UID:20070313T123432Z-456553@example.com' . PHP_EOL .
+ 'DTSTAMP:20070313T123432Z' . PHP_EOL .
+ 'DUE:20070709T130000Z' . PHP_EOL .
+ 'SUMMARY:Task title' . PHP_EOL .
+ 'STATUS:NEEDS-ACTION' . PHP_EOL .
+ 'END:VTODO' . PHP_EOL .
'END:VCALENDAR';
protected function setUp(): void {
diff --git a/apps/dav/tests/unit/bootstrap.php b/apps/dav/tests/unit/bootstrap.php
index 61dbda35ae2..886a7f0b859 100644
--- a/apps/dav/tests/unit/bootstrap.php
+++ b/apps/dav/tests/unit/bootstrap.php
@@ -9,7 +9,7 @@ if (!defined('PHPUNIT_RUN')) {
define('PHPUNIT_RUN', 1);
}
-require_once __DIR__.'/../../../../lib/base.php';
+require_once __DIR__ . '/../../../../lib/base.php';
\OC::$composerAutoloader->addPsr4('Test\\', OC::$SERVERROOT . '/tests/lib/', true);