diff options
Diffstat (limited to 'tests/settings/controller/logsettingscontrollertest.php')
-rw-r--r-- | tests/settings/controller/logsettingscontrollertest.php | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/settings/controller/logsettingscontrollertest.php b/tests/settings/controller/logsettingscontrollertest.php index 84581bf5782..60680ba4647 100644 --- a/tests/settings/controller/logsettingscontrollertest.php +++ b/tests/settings/controller/logsettingscontrollertest.php @@ -66,15 +66,9 @@ class LogSettingsControllerTest extends \Test\TestCase { ]; } - public function testGetFilenameForDownload() { - $timestamp = 42; - $this->container['Config'] - ->expects($this->once()) - ->method('getSystemValue') - ->with('instanceid') - ->will($this->returnValue('0xF')); - $filename = \Test_Helper::invokePrivate($this->logSettingsController, 'getFilenameForDownload', [$timestamp]); + public function testDownload() { + $response = $this->logSettingsController->download(); - $this->assertSame('ownCloud-0xF-42.log', $filename); + $this->assertInstanceOf('\OCP\AppFramework\Http\StreamResponse', $response); } } |