From 957a00b9de873ebdc382c86c82d32aff5eedba52 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 19 Jun 2024 14:55:05 +0200 Subject: chore: remove chunking-v1 Signed-off-by: Robin Appelman --- tests/lib/FileChunkingTest.php | 58 ------------------------------------------ 1 file changed, 58 deletions(-) delete mode 100644 tests/lib/FileChunkingTest.php (limited to 'tests') diff --git a/tests/lib/FileChunkingTest.php b/tests/lib/FileChunkingTest.php deleted file mode 100644 index b69154ea1c3..00000000000 --- a/tests/lib/FileChunkingTest.php +++ /dev/null @@ -1,58 +0,0 @@ -getMockBuilder(\OC_FileChunking::class) - ->setMethods(['getCache']) - ->setConstructorArgs([[ - 'name' => 'file', - 'transferid' => '42', - 'chunkcount' => $total, - ]]) - ->getMock(); - - $cache = $this->createMock(ICache::class); - - $cache->expects($this->atLeastOnce()) - ->method('hasKey') - ->willReturnCallback(function ($key) use ($present) { - $data = explode('-', $key); - return in_array($data[3], $present); - }); - - $fileChunking->method('getCache')->willReturn($cache); - - $this->assertEquals($expected, $fileChunking->isComplete()); - } -} -- cgit v1.2.3