From 94b1b1593b1071a894520a7f29fd8dd716a87ba6 Mon Sep 17 00:00:00 2001 From: Morris Jobke <hey@morrisjobke.de> Date: Fri, 1 Feb 2019 15:40:21 +0100 Subject: [PATCH] Remove public interface that was only needed for testing Signed-off-by: Morris Jobke <hey@morrisjobke.de> --- lib/public/AppFramework/Http/FileDisplayResponse.php | 9 --------- tests/Core/Controller/GuestAvatarControllerTest.php | 1 - 2 files changed, 10 deletions(-) diff --git a/lib/public/AppFramework/Http/FileDisplayResponse.php b/lib/public/AppFramework/Http/FileDisplayResponse.php index f5b9a1cf2b9..ab23701f893 100644 --- a/lib/public/AppFramework/Http/FileDisplayResponse.php +++ b/lib/public/AppFramework/Http/FileDisplayResponse.php @@ -66,13 +66,4 @@ class FileDisplayResponse extends Response implements ICallbackResponse { $output->setOutput($this->file->getContent()); } } - - /** - * Returns the response file. - * - * @return \OCP\Files\File|\OCP\Files\SimpleFS\ISimpleFile - */ - public function getFile() { - return $this->file; - } } diff --git a/tests/Core/Controller/GuestAvatarControllerTest.php b/tests/Core/Controller/GuestAvatarControllerTest.php index a7c67c684cc..f720478e499 100644 --- a/tests/Core/Controller/GuestAvatarControllerTest.php +++ b/tests/Core/Controller/GuestAvatarControllerTest.php @@ -85,6 +85,5 @@ class GuestAvatarControllerTest extends \Test\TestCase { $this->assertGreaterThanOrEqual(201, $response->getStatus()); $this->assertInstanceOf(FileDisplayResponse::class, $response); - $this->assertSame($this->file, $response->getFile()); } } -- GitLab