From b5545932e7efec24f36fae76ffe8924e31e1d55a Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Fri, 27 Mar 2015 01:37:25 +0100 Subject: use StreamResponse to download the log file - fixes #14268 --- tests/settings/controller/logsettingscontrollertest.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'tests/settings') 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); } } -- cgit v1.2.3