createMock(IConfig::class); $config->expects($this->once()) ->method('getSystemValueBool') ->with('bulkupload.enabled', $this->isType('bool')) ->willReturn(false); $capabilities = new Capabilities($config); $expected = [ 'dav' => [ 'chunking' => '1.0', ], ]; $this->assertSame($expected, $capabilities->getCapabilities()); } public function testGetCapabilitiesWithBulkUpload(): void { $config = $this->createMock(IConfig::class); $config->expects($this->once()) ->method('getSystemValueBool') ->with('bulkupload.enabled', $this->isType('bool')) ->willReturn(true); $capabilities = new Capabilities($config); $expected = [ 'dav' => [ 'chunking' => '1.0', 'bulkupload' => '1.0', ], ]; $this->assertSame($expected, $capabilities->getCapabilities()); } }