diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-08-29 16:36:40 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-08-29 16:36:40 +0200 |
commit | 6f80fe6ada68cee35e714568afeb614238fbc241 (patch) | |
tree | eec7e8eb3742ec0e6b0463c290cb0cf146affca7 /tests/lib/Repair | |
parent | 791e0214556c353d9c3ac9b2c54e465588c6af67 (diff) | |
download | nextcloud-server-6f80fe6ada68cee35e714568afeb614238fbc241.tar.gz nextcloud-server-6f80fe6ada68cee35e714568afeb614238fbc241.zip |
Remove deprecated at matcher from tests/lib
Only 15 warnings left in there
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests/lib/Repair')
-rw-r--r-- | tests/lib/Repair/ClearFrontendCachesTest.php | 2 | ||||
-rw-r--r-- | tests/lib/Repair/NC11/FixMountStoragesTest.php | 11 |
2 files changed, 6 insertions, 7 deletions
diff --git a/tests/lib/Repair/ClearFrontendCachesTest.php b/tests/lib/Repair/ClearFrontendCachesTest.php index d89a19e70cc..09b96be7de3 100644 --- a/tests/lib/Repair/ClearFrontendCachesTest.php +++ b/tests/lib/Repair/ClearFrontendCachesTest.php @@ -61,7 +61,7 @@ class ClearFrontendCachesTest extends \Test\TestCase { ->with(''); $this->jsCombiner->expects($this->once()) ->method('resetCache'); - $this->cacheFactory->expects($this->at(0)) + $this->cacheFactory->expects($this->once()) ->method('createDistributed') ->with('imagePath') ->willReturn($imagePathCache); diff --git a/tests/lib/Repair/NC11/FixMountStoragesTest.php b/tests/lib/Repair/NC11/FixMountStoragesTest.php index 9bc61865235..33c3fc1da11 100644 --- a/tests/lib/Repair/NC11/FixMountStoragesTest.php +++ b/tests/lib/Repair/NC11/FixMountStoragesTest.php @@ -70,18 +70,17 @@ class FixMountStoragesTest extends TestCase { /** @var IOutput|\PHPUnit\Framework\MockObject\MockObject $output */ $output = $this->createMock(IOutput::class); - $output->expects($this->at(0)) + $output->expects($this->exactly(2)) ->method('info') - ->with('1 mounts updated'); + ->withConsecutive( + ['1 mounts updated'], + ['No mounts updated'] + ); $this->repair->run($output); $this->assertStorage($mount1, 42); $this->assertStorage($mount2, 23); - $output->expects($this->at(0)) - ->method('info') - ->with('No mounts updated'); - $this->repair->run($output); $this->assertStorage($mount1, 42); $this->assertStorage($mount2, 23); |