|
17 | 17 | use OCP\EventDispatcher\IEventDispatcher; |
18 | 18 | use OCP\Files\Config\ICachedMountInfo; |
19 | 19 | use OCP\Files\Config\IMountProvider; |
20 | | -use OCP\Files\Config\IMountProviderArgs; |
21 | 20 | use OCP\Files\Config\IPartialMountProvider; |
22 | 21 | use OCP\Files\Config\IUserMountCache; |
| 22 | +use OCP\Files\Config\MountProviderArgs; |
23 | 23 | use OCP\Files\Mount\IMountManager; |
24 | 24 | use OCP\Files\Mount\IMountPoint; |
25 | 25 | use OCP\Files\Storage\IStorageFactory; |
@@ -147,7 +147,7 @@ public function testSetupForPathWithPartialProviderSkipsAlreadySetupPath(): void |
147 | 147 | false, |
148 | 148 | $this->callback(function (array $args) use ($cachedMount) { |
149 | 149 | $this->assertCount(1, $args); |
150 | | - $this->assertInstanceOf(IMountProviderArgs::class, $args[0]); |
| 150 | + $this->assertInstanceOf(MountProviderArgs::class, $args[0]); |
151 | 151 | $this->assertSame($cachedMount, $args[0]->mountInfo); |
152 | 152 | return true; |
153 | 153 | }) |
@@ -366,7 +366,7 @@ public function testSetupForPathWithChildrenAndPartialProviderSkipsIfParentAlrea |
366 | 366 | $this->assertSame($expectedPath, $pathArg); |
367 | 367 | $this->assertSame($expectedForChildren, $forChildren); |
368 | 368 | $this->assertCount(1, $mountProviderArgs); |
369 | | - $this->assertInstanceOf(IMountProviderArgs::class, $mountProviderArgs[0]); |
| 369 | + $this->assertInstanceOf(MountProviderArgs::class, $mountProviderArgs[0]); |
370 | 370 | $this->assertSame($expectedCachedMount, $mountProviderArgs[0]->mountInfo); |
371 | 371 |
|
372 | 372 | return $mountPoints; |
@@ -468,7 +468,7 @@ public function testSetupForPathHandlesPartialAndFullProvidersWithChildren(): vo |
468 | 468 | $this->assertSame($expectedPath, $pathArg); |
469 | 469 | $this->assertSame($expectedForChildren, $forChildren); |
470 | 470 | $this->assertCount(1, $mountProviderArgs); |
471 | | - $this->assertInstanceOf(IMountProviderArgs::class, $mountProviderArgs[0]); |
| 471 | + $this->assertInstanceOf(MountProviderArgs::class, $mountProviderArgs[0]); |
472 | 472 | $this->assertSame($expectedCachedMount, $mountProviderArgs[0]->mountInfo); |
473 | 473 |
|
474 | 474 | return $mountPoints; |
@@ -520,7 +520,7 @@ public function testSetupForUserResetsUserPaths(): void { |
520 | 520 | false, |
521 | 521 | $this->callback(function (array $args) use ($cachedMount) { |
522 | 522 | $this->assertCount(1, $args); |
523 | | - $this->assertInstanceOf(IMountProviderArgs::class, |
| 523 | + $this->assertInstanceOf(MountProviderArgs::class, |
524 | 524 | $args[0]); |
525 | 525 | $this->assertSame($cachedMount, $args[0]->mountInfo); |
526 | 526 | return true; |
@@ -589,7 +589,7 @@ public function testSetupForProviderResetsUserProviderPaths(): void { |
589 | 589 | false, |
590 | 590 | $this->callback(function (array $args) use ($cachedMount) { |
591 | 591 | $this->assertCount(1, $args); |
592 | | - $this->assertInstanceOf(IMountProviderArgs::class, |
| 592 | + $this->assertInstanceOf(MountProviderArgs::class, |
593 | 593 | $args[0]); |
594 | 594 | $this->assertSame($cachedMount, $args[0]->mountInfo); |
595 | 595 | return true; |
|
0 commit comments