Completed
Push — master ( 176f57...2c53d3 )
by Daniel
32:12
created
tests/lib/Calendar/CalendarEventBuilderTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 		$this->calendarEventBuilder->addAttendee('mailto:[email protected]');
46 46
 		$this->calendarEventBuilder->addAttendee('mailto:[email protected]');
47 47
 
48
-		$expected = file_get_contents(\OC::$SERVERROOT . '/tests/data/ics/event-builder-complete.ics');
48
+		$expected = file_get_contents(\OC::$SERVERROOT.'/tests/data/ics/event-builder-complete.ics');
49 49
 		$actual = $this->calendarEventBuilder->toIcs();
50 50
 		$this->assertEquals($expected, $actual);
51 51
 	}
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 		$this->calendarEventBuilder->setSummary('My event');
58 58
 		$this->calendarEventBuilder->setDescription('Foo bar baz');
59 59
 
60
-		$expected = file_get_contents(\OC::$SERVERROOT . '/tests/data/ics/event-builder-without-attendees.ics');
60
+		$expected = file_get_contents(\OC::$SERVERROOT.'/tests/data/ics/event-builder-without-attendees.ics');
61 61
 		$actual = $this->calendarEventBuilder->toIcs();
62 62
 		$this->assertEquals($expected, $actual);
63 63
 	}
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 		$this->calendarEventBuilder->addAttendee('[email protected]');
73 73
 		$this->calendarEventBuilder->addAttendee('[email protected]');
74 74
 
75
-		$expected = file_get_contents(\OC::$SERVERROOT . '/tests/data/ics/event-builder-complete.ics');
75
+		$expected = file_get_contents(\OC::$SERVERROOT.'/tests/data/ics/event-builder-complete.ics');
76 76
 		$actual = $this->calendarEventBuilder->toIcs();
77 77
 		$this->assertEquals($expected, $actual);
78 78
 	}
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 		$this->calendarEventBuilder->addAttendee('[email protected]');
88 88
 		$this->calendarEventBuilder->addAttendee('mailto:[email protected]');
89 89
 
90
-		$expectedIcs = file_get_contents(\OC::$SERVERROOT . '/tests/data/ics/event-builder-complete.ics');
90
+		$expectedIcs = file_get_contents(\OC::$SERVERROOT.'/tests/data/ics/event-builder-complete.ics');
91 91
 		$calendar = $this->createMock(ICreateFromString::class);
92 92
 		$calendar->expects(self::once())
93 93
 			->method('createFromString')
Please login to merge, or discard this patch.
tests/lib/Calendar/ResourcesRoomsUpdaterTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 		$res6->method('getBackend')->willReturn($backend3);
144 144
 
145 145
 		$res6->method('getAllAvailableMetadataKeys')->willReturn(['meta99', 'meta123']);
146
-		$res6->method('getMetadataForKey')->willReturnCallback(function ($key) {
146
+		$res6->method('getMetadataForKey')->willReturnCallback(function($key) {
147 147
 			switch ($key) {
148 148
 				case 'meta99':
149 149
 					return 'value99-new';
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 		$res7->method('getEMail')->willReturn('[email protected]');
163 163
 		$res7->method('getBackend')->willReturn($backend3);
164 164
 		$res7->method('getAllAvailableMetadataKeys')->willReturn(['meta1']);
165
-		$res7->method('getMetadataForKey')->willReturnCallback(function ($key) {
165
+		$res7->method('getMetadataForKey')->willReturnCallback(function($key) {
166 166
 			switch ($key) {
167 167
 				case 'meta1':
168 168
 					return 'value1';
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 		$res8->method('getEMail')->willReturn('[email protected]');
179 179
 		$res8->method('getBackend')->willReturn($backend4);
180 180
 		$res8->method('getAllAvailableMetadataKeys')->willReturn(['meta2']);
181
-		$res8->method('getMetadataForKey')->willReturnCallback(function ($key) {
181
+		$res8->method('getMetadataForKey')->willReturnCallback(function($key) {
182 182
 			switch ($key) {
183 183
 				case 'meta2':
184 184
 					return 'value2';
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 		$ids = [];
218 218
 		$stmt = $query->execute();
219 219
 		while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
220
-			$ids[$row['backend_id'] . '::' . $row['resource_id']] = $row['id'];
220
+			$ids[$row['backend_id'].'::'.$row['resource_id']] = $row['id'];
221 221
 			unset($row['id']);
222 222
 			$rows[] = $row;
223 223
 		}
Please login to merge, or discard this patch.
tests/lib/Calendar/Room/ManagerTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
 		$this->server->expects(self::exactly(2))
55 55
 			->method('query')
56 56
 			->willReturnMap([
57
-				['calendar_room_backend1', true, $backend1,],
58
-				['calendar_room_backend2', true, $backend2,],
57
+				['calendar_room_backend1', true, $backend1, ],
58
+				['calendar_room_backend2', true, $backend2, ],
59 59
 			]);
60 60
 
61 61
 		$this->manager->registerBackend('calendar_room_backend1');
@@ -101,8 +101,8 @@  discard block
 block discarded – undo
101 101
 		$this->server->expects(self::exactly(2))
102 102
 			->method('query')
103 103
 			->willReturnMap([
104
-				['calendar_room_backend1', true, $backend1,],
105
-				['calendar_room_backend2', true, $backend2,],
104
+				['calendar_room_backend1', true, $backend1, ],
105
+				['calendar_room_backend2', true, $backend2, ],
106 106
 			]);
107 107
 
108 108
 		$this->manager->registerBackend('calendar_room_backend1');
@@ -120,8 +120,8 @@  discard block
 block discarded – undo
120 120
 		$this->server->expects(self::exactly(2))
121 121
 			->method('query')
122 122
 			->willReturnMap([
123
-				['calendar_room_backend1', true, $backend1,],
124
-				['calendar_room_backend2', true, $backend2,],
123
+				['calendar_room_backend1', true, $backend1, ],
124
+				['calendar_room_backend2', true, $backend2, ],
125 125
 			]);
126 126
 
127 127
 		$this->manager->registerBackend('calendar_room_backend1');
Please login to merge, or discard this patch.
tests/lib/Calendar/Resource/ManagerTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
 		$this->server->expects(self::exactly(2))
55 55
 			->method('query')
56 56
 			->willReturnMap([
57
-				['calendar_resource_backend1', true, $backend1,],
58
-				['calendar_resource_backend2', true, $backend2,],
57
+				['calendar_resource_backend1', true, $backend1, ],
58
+				['calendar_resource_backend2', true, $backend2, ],
59 59
 			]);
60 60
 
61 61
 		$this->manager->registerBackend('calendar_resource_backend1');
@@ -99,8 +99,8 @@  discard block
 block discarded – undo
99 99
 		$this->server->expects(self::exactly(2))
100 100
 			->method('query')
101 101
 			->willReturnMap([
102
-				['calendar_resource_backend1', true, $backend1,],
103
-				['calendar_resource_backend2', true, $backend2,],
102
+				['calendar_resource_backend1', true, $backend1, ],
103
+				['calendar_resource_backend2', true, $backend2, ],
104 104
 			]);
105 105
 
106 106
 		$this->manager->registerBackend('calendar_resource_backend1');
@@ -118,8 +118,8 @@  discard block
 block discarded – undo
118 118
 		$this->server->expects(self::exactly(2))
119 119
 			->method('query')
120 120
 			->willReturnMap([
121
-				['calendar_resource_backend1', true, $backend1,],
122
-				['calendar_resource_backend2', true, $backend2,],
121
+				['calendar_resource_backend1', true, $backend1, ],
122
+				['calendar_resource_backend2', true, $backend2, ],
123 123
 			]);
124 124
 
125 125
 		$this->manager->registerBackend('calendar_resource_backend1');
Please login to merge, or discard this patch.
tests/lib/FilesMetadata/FilesMetadataManagerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
 		$this->jobList = $this->createMock(JobList::class);
51 51
 		$this->eventDispatcher = $this->createMock(IEventDispatcher::class);
52
-		$this->eventDispatcher->method('dispatchTyped')->willReturnCallback(function (Event $event) {
52
+		$this->eventDispatcher->method('dispatchTyped')->willReturnCallback(function(Event $event) {
53 53
 			if ($event instanceof AMetadataEvent) {
54 54
 				$name = $event->getNode()->getName();
55 55
 				if (isset($this->metadata[$name])) {
Please login to merge, or discard this patch.
tests/lib/Updater/ReleaseMetadataTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 use PHPUnit\Framework\MockObject\MockObject;
14 14
 
15 15
 class ReleaseMetadataTest extends \Test\TestCase {
16
-	private IClientService|MockObject $clientService;
16
+	private IClientService | MockObject $clientService;
17 17
 
18 18
 	protected function setUp(): void {
19 19
 		parent::setUp();
Please login to merge, or discard this patch.
tests/lib/Group/ManagerTest.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -93,8 +93,8 @@  discard block
 block discarded – undo
93 93
 			->getMock();
94 94
 		$backend->expects($this->any())
95 95
 			->method('implementsActions')
96
-			->willReturnCallback(function ($actions) use ($implementedActions) {
97
-				return (bool)($actions & $implementedActions);
96
+			->willReturnCallback(function($actions) use ($implementedActions) {
97
+				return (bool) ($actions & $implementedActions);
98 98
 			});
99 99
 		return $backend;
100 100
 	}
@@ -186,12 +186,12 @@  discard block
 block discarded – undo
186 186
 		$backend->expects($this->any())
187 187
 			->method('groupExists')
188 188
 			->with('group1')
189
-			->willReturnCallback(function () use (&$backendGroupCreated) {
189
+			->willReturnCallback(function() use (&$backendGroupCreated) {
190 190
 				return $backendGroupCreated;
191 191
 			});
192 192
 		$backend->expects($this->once())
193 193
 			->method('createGroup')
194
-			->willReturnCallback(function () use (&$backendGroupCreated) {
194
+			->willReturnCallback(function() use (&$backendGroupCreated) {
195 195
 				$backendGroupCreated = true;
196 196
 				return true;
197 197
 			});
@@ -575,7 +575,7 @@  discard block
 block discarded – undo
575 575
 
576 576
 		$backend->expects($this->any())
577 577
 			->method('inGroup')
578
-			->willReturnCallback(function ($uid, $gid) {
578
+			->willReturnCallback(function($uid, $gid) {
579 579
 				switch ($uid) {
580 580
 					case 'user1': return false;
581 581
 					case 'user2': return true;
@@ -589,7 +589,7 @@  discard block
 block discarded – undo
589 589
 		$this->userManager->expects($this->any())
590 590
 			->method('searchDisplayName')
591 591
 			->with('user3')
592
-			->willReturnCallback(function ($search, $limit, $offset) {
592
+			->willReturnCallback(function($search, $limit, $offset) {
593 593
 				switch ($offset) {
594 594
 					case 0: return ['user3' => $this->getTestUser('user3'),
595 595
 						'user33' => $this->getTestUser('user33')];
@@ -599,7 +599,7 @@  discard block
 block discarded – undo
599 599
 			});
600 600
 		$this->userManager->expects($this->any())
601 601
 			->method('get')
602
-			->willReturnCallback(function ($uid) {
602
+			->willReturnCallback(function($uid) {
603 603
 				switch ($uid) {
604 604
 					case 'user1': return $this->getTestUser('user1');
605 605
 					case 'user2': return $this->getTestUser('user2');
@@ -633,7 +633,7 @@  discard block
 block discarded – undo
633 633
 
634 634
 		$backend->expects($this->any())
635 635
 			->method('inGroup')
636
-			->willReturnCallback(function ($uid, $gid) {
636
+			->willReturnCallback(function($uid, $gid) {
637 637
 				switch ($uid) {
638 638
 					case 'user1': return false;
639 639
 					case 'user2': return true;
@@ -648,7 +648,7 @@  discard block
 block discarded – undo
648 648
 		$this->userManager->expects($this->any())
649 649
 			->method('searchDisplayName')
650 650
 			->with('user3')
651
-			->willReturnCallback(function ($search, $limit, $offset) {
651
+			->willReturnCallback(function($search, $limit, $offset) {
652 652
 				switch ($offset) {
653 653
 					case 0: return ['user3' => $this->getTestUser('user3'),
654 654
 						'user33' => $this->getTestUser('user33')];
@@ -658,7 +658,7 @@  discard block
 block discarded – undo
658 658
 			});
659 659
 		$this->userManager->expects($this->any())
660 660
 			->method('get')
661
-			->willReturnCallback(function ($uid) {
661
+			->willReturnCallback(function($uid) {
662 662
 				switch ($uid) {
663 663
 					case 'user1': return $this->getTestUser('user1');
664 664
 					case 'user2': return $this->getTestUser('user2');
@@ -694,7 +694,7 @@  discard block
 block discarded – undo
694 694
 
695 695
 		$backend->expects($this->any())
696 696
 			->method('inGroup')
697
-			->willReturnCallback(function ($uid) {
697
+			->willReturnCallback(function($uid) {
698 698
 				switch ($uid) {
699 699
 					case 'user1': return false;
700 700
 					case 'user2': return true;
@@ -709,7 +709,7 @@  discard block
 block discarded – undo
709 709
 		$this->userManager->expects($this->any())
710 710
 			->method('searchDisplayName')
711 711
 			->with('user3')
712
-			->willReturnCallback(function ($search, $limit, $offset) {
712
+			->willReturnCallback(function($search, $limit, $offset) {
713 713
 				switch ($offset) {
714 714
 					case 0:
715 715
 						return [
@@ -722,7 +722,7 @@  discard block
 block discarded – undo
722 722
 			});
723 723
 		$this->userManager->expects($this->any())
724 724
 			->method('get')
725
-			->willReturnCallback(function ($uid) {
725
+			->willReturnCallback(function($uid) {
726 726
 				switch ($uid) {
727 727
 					case 'user1': return $this->getTestUser('user1');
728 728
 					case 'user2': return $this->getTestUser('user2');
@@ -839,7 +839,7 @@  discard block
 block discarded – undo
839 839
 		$backend->expects($this->any())
840 840
 			->method('getUserGroups')
841 841
 			->with('user1')
842
-			->willReturnCallback(function () use (&$expectedGroups) {
842
+			->willReturnCallback(function() use (&$expectedGroups) {
843 843
 				return $expectedGroups;
844 844
 			});
845 845
 		$backend->expects($this->any())
@@ -876,7 +876,7 @@  discard block
 block discarded – undo
876 876
 		$backend->expects($this->any())
877 877
 			->method('getUserGroups')
878 878
 			->with('user1')
879
-			->willReturnCallback(function () use (&$expectedGroups) {
879
+			->willReturnCallback(function() use (&$expectedGroups) {
880 880
 				return $expectedGroups;
881 881
 			});
882 882
 		$backend->expects($this->any())
Please login to merge, or discard this patch.
tests/lib/AppFramework/Services/AppConfigTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
 use Test\TestCase;
19 19
 
20 20
 class AppConfigTest extends TestCase {
21
-	private IConfig|MockObject $config;
22
-	private IAppConfigCore|MockObject $appConfigCore;
21
+	private IConfig | MockObject $config;
22
+	private IAppConfigCore | MockObject $appConfigCore;
23 23
 	private AppConfig $appConfig;
24 24
 
25 25
 	private const TEST_APPID = 'appconfig-test';
Please login to merge, or discard this patch.
tests/lib/AppFramework/Http/StreamResponseTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 	}
51 51
 
52 52
 	public function testOutputNotFound(): void {
53
-		$path = __FILE__ . 'test';
53
+		$path = __FILE__.'test';
54 54
 		$this->output->expects($this->once())
55 55
 			->method('getHttpResponseCode')
56 56
 			->willReturn(Http::STATUS_OK);
Please login to merge, or discard this patch.