diff options
author | Olivier Paroz <github@oparoz.com> | 2015-09-20 00:27:40 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-09-20 00:27:40 +0300 |
commit | d94079992ec6ee48c4b22083ff099d849fe49725 (patch) | |
tree | 0569590334daa8c3142a4b47c3ad5780cd83d43d /tests | |
parent | 6e1473afe05d2c2ec752c4d60807b274689c079b (diff) |
Remove unneedded session object
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/controller/FilesApiControllerTest.php | 1 | ||||
-rw-r--r-- | tests/unit/controller/FilesControllerTest.php | 23 | ||||
-rw-r--r-- | tests/unit/controller/FilesPublicControllerTest.php | 1 |
3 files changed, 0 insertions, 25 deletions
diff --git a/tests/unit/controller/FilesApiControllerTest.php b/tests/unit/controller/FilesApiControllerTest.php index 3d837b79..e53d179e 100644 --- a/tests/unit/controller/FilesApiControllerTest.php +++ b/tests/unit/controller/FilesApiControllerTest.php @@ -31,7 +31,6 @@ class FilesApiControllerTest extends FilesControllerTest { $this->configService, $this->searchMediaService, $this->downloadService, - $this->session, $this->logger ); } diff --git a/tests/unit/controller/FilesControllerTest.php b/tests/unit/controller/FilesControllerTest.php index 5b202b08..76a9c7e8 100644 --- a/tests/unit/controller/FilesControllerTest.php +++ b/tests/unit/controller/FilesControllerTest.php @@ -58,10 +58,6 @@ class FilesControllerTest extends \Test\GalleryUnitTest { protected $searchMediaService; /** @var DownloadService */ protected $downloadService; - /** @var ISession */ - protected $session; - /** @var ISession */ - protected $sessionValue = null; /** @var ILogger */ protected $logger; @@ -95,9 +91,6 @@ class FilesControllerTest extends \Test\GalleryUnitTest { $this->downloadService = $this->getMockBuilder('\OCA\Gallery\Service\DownloadService') ->disableOriginalConstructor() ->getMock(); - $this->session = $this->getMockBuilder('\OCP\ISession') - ->disableOriginalConstructor() - ->getMock(); $this->logger = $this->getMockBuilder('\OCP\ILogger') ->disableOriginalConstructor() ->getMock(); @@ -109,7 +102,6 @@ class FilesControllerTest extends \Test\GalleryUnitTest { $this->configService, $this->searchMediaService, $this->downloadService, - $this->session, $this->logger ); } @@ -366,19 +358,4 @@ class FilesControllerTest extends \Test\GalleryUnitTest { ->willReturn($answer); } - /** - * Needs to be called at least once by testDownloadWithWrongId() or the tests will fail - * - * @param $key - * @param $value - */ - private function mockSessionSet($key, $value) { - $this->session->expects($this->once()) - ->method('set') - ->with( - $key, - $value - ); - } - } diff --git a/tests/unit/controller/FilesPublicControllerTest.php b/tests/unit/controller/FilesPublicControllerTest.php index 400f355e..e47718ed 100644 --- a/tests/unit/controller/FilesPublicControllerTest.php +++ b/tests/unit/controller/FilesPublicControllerTest.php @@ -31,7 +31,6 @@ class FilesPublicControllerTest extends FilesControllerTest { $this->configService, $this->searchMediaService, $this->downloadService, - $this->session, $this->logger ); } |