|
@@ -145,7 +145,7 @@ discard block |
|
|
block discarded – undo |
|
145
|
145
|
SetupManagerTestPartialMountProvider::class, |
|
146
|
146
|
$this->path, |
|
147
|
147
|
false, |
|
148
|
|
- $this->callback(function (array $args) use ($cachedMount) { |
|
|
148
|
+ $this->callback(function(array $args) use ($cachedMount) { |
|
149
|
149
|
$this->assertCount(1, $args); |
|
150
|
150
|
$this->assertInstanceOf(IMountProviderArgs::class, $args[0]); |
|
151
|
151
|
$this->assertSame($cachedMount, $args[0]->mountInfo); |
|
@@ -227,7 +227,7 @@ discard block |
|
|
block discarded – undo |
|
227
|
227
|
*/ |
|
228
|
228
|
public function testSetupForPathWithChildrenAndNonPartialProviderSkipsAlreadySetupProvider(): void { |
|
229
|
229
|
$cachedMount = $this->getCachedMountInfo($this->mountPoint, 42, IMountProvider::class); |
|
230
|
|
- $additionalCachedMount = $this->getCachedMountInfo($this->mountPoint . 'additional/', 43, SetupManagerTestFullMountProvider::class); |
|
|
230
|
+ $additionalCachedMount = $this->getCachedMountInfo($this->mountPoint.'additional/', 43, SetupManagerTestFullMountProvider::class); |
|
231
|
231
|
|
|
232
|
232
|
$this->userMountCache->expects($this->exactly(2)) |
|
233
|
233
|
->method('getMountForPath') |
|
@@ -244,7 +244,7 @@ discard block |
|
|
block discarded – undo |
|
244
|
244
|
$invokedCount = $this->exactly(2); |
|
245
|
245
|
$this->mountProviderCollection->expects($invokedCount) |
|
246
|
246
|
->method('getUserMountsForProviderClasses') |
|
247
|
|
- ->willReturnCallback(function (IUser $userArg, array $providersArg) use ( |
|
|
247
|
+ ->willReturnCallback(function(IUser $userArg, array $providersArg) use ( |
|
248
|
248
|
$additionalMount, |
|
249
|
249
|
$mount, |
|
250
|
250
|
$invokedCount) { |
|
@@ -297,7 +297,7 @@ discard block |
|
|
block discarded – undo |
|
297
|
297
|
$invokedCount = $this->exactly(3); |
|
298
|
298
|
$this->userMountCache->expects($invokedCount) |
|
299
|
299
|
->method('getMountForPath') |
|
300
|
|
- ->willReturnCallback(function (IUser $userArg, string $pathArg) use ( |
|
|
300
|
+ ->willReturnCallback(function(IUser $userArg, string $pathArg) use ( |
|
301
|
301
|
$cachedChildMount, |
|
302
|
302
|
$cachedMount, |
|
303
|
303
|
$childPath, |
|
@@ -337,7 +337,7 @@ discard block |
|
|
block discarded – undo |
|
337
|
337
|
$invokedCount = $this->exactly(2); |
|
338
|
338
|
$this->mountProviderCollection->expects($invokedCount) |
|
339
|
339
|
->method('getUserMountsFromProviderByPath') |
|
340
|
|
- ->willReturnCallback(function ( |
|
|
340
|
+ ->willReturnCallback(function( |
|
341
|
341
|
string $providerClass, |
|
342
|
342
|
string $pathArg, |
|
343
|
343
|
bool $forChildren, |
|
@@ -445,7 +445,7 @@ discard block |
|
|
block discarded – undo |
|
445
|
445
|
$invokedCount = $this->exactly(2); |
|
446
|
446
|
$this->mountProviderCollection->expects($invokedCount) |
|
447
|
447
|
->method('getUserMountsFromProviderByPath') |
|
448
|
|
- ->willReturnCallback(function (string $providerClass, string $pathArg, bool $forChildren, array $mountProviderArgs) use ( |
|
|
448
|
+ ->willReturnCallback(function(string $providerClass, string $pathArg, bool $forChildren, array $mountProviderArgs) use ( |
|
449
|
449
|
$childCachedPartialMount, |
|
450
|
450
|
$childPartialMount, |
|
451
|
451
|
$parentPartialMount, |
|
@@ -496,7 +496,7 @@ discard block |
|
|
block discarded – undo |
|
496
|
496
|
} |
|
497
|
497
|
|
|
498
|
498
|
private function getAddMountCheckCallback(InvokedCount $invokedCount, $expectations): \Closure { |
|
499
|
|
- return function (IMountPoint $actualMount) use ($invokedCount, $expectations) { |
|
|
499
|
+ return function(IMountPoint $actualMount) use ($invokedCount, $expectations) { |
|
500
|
500
|
$expectedMount = $expectations[$invokedCount->numberOfInvocations()] ?? null; |
|
501
|
501
|
$this->assertSame($expectedMount, $actualMount); |
|
502
|
502
|
}; |