diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-06-17 19:08:02 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-07-23 21:19:21 +0200 |
commit | 78657347c5b463d7c22bfc8c87b7db39fe058833 (patch) | |
tree | a61c513ce05a597119cb5e9e65a33a94e01663d9 /tests/front/controller/admin/ExportControllerTest.php | |
parent | c70ff64a61d62cc8d35a62f30596ecc2a3c578a3 (diff) | |
download | Shaarli-78657347c5b463d7c22bfc8c87b7db39fe058833.tar.gz Shaarli-78657347c5b463d7c22bfc8c87b7db39fe058833.tar.zst Shaarli-78657347c5b463d7c22bfc8c87b7db39fe058833.zip |
Process bookmarks import through Slim controller
Diffstat (limited to 'tests/front/controller/admin/ExportControllerTest.php')
-rw-r--r-- | tests/front/controller/admin/ExportControllerTest.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/front/controller/admin/ExportControllerTest.php b/tests/front/controller/admin/ExportControllerTest.php index e43a9626..50d9e378 100644 --- a/tests/front/controller/admin/ExportControllerTest.php +++ b/tests/front/controller/admin/ExportControllerTest.php | |||
@@ -2,14 +2,12 @@ | |||
2 | 2 | ||
3 | declare(strict_types=1); | 3 | declare(strict_types=1); |
4 | 4 | ||
5 | namespace front\controller\admin; | 5 | namespace Shaarli\Front\Controller\Admin; |
6 | 6 | ||
7 | use PHPUnit\Framework\TestCase; | 7 | use PHPUnit\Framework\TestCase; |
8 | use Shaarli\Bookmark\Bookmark; | 8 | use Shaarli\Bookmark\Bookmark; |
9 | use Shaarli\Formatter\BookmarkFormatter; | 9 | use Shaarli\Formatter\BookmarkFormatter; |
10 | use Shaarli\Formatter\BookmarkRawFormatter; | 10 | use Shaarli\Formatter\BookmarkRawFormatter; |
11 | use Shaarli\Front\Controller\Admin\ExportController; | ||
12 | use Shaarli\Front\Controller\Admin\FrontAdminControllerMockHelper; | ||
13 | use Shaarli\Netscape\NetscapeBookmarkUtils; | 11 | use Shaarli\Netscape\NetscapeBookmarkUtils; |
14 | use Shaarli\Security\SessionManager; | 12 | use Shaarli\Security\SessionManager; |
15 | use Slim\Http\Request; | 13 | use Slim\Http\Request; |
@@ -117,7 +115,6 @@ class ExportControllerTest extends TestCase | |||
117 | $request = $this->createMock(Request::class); | 115 | $request = $this->createMock(Request::class); |
118 | $response = new Response(); | 116 | $response = new Response(); |
119 | 117 | ||
120 | $this->container->sessionManager = $this->createMock(SessionManager::class); | ||
121 | $this->container->sessionManager | 118 | $this->container->sessionManager |
122 | ->expects(static::once()) | 119 | ->expects(static::once()) |
123 | ->method('setSessionParameter') | 120 | ->method('setSessionParameter') |
@@ -152,7 +149,6 @@ class ExportControllerTest extends TestCase | |||
152 | ->willThrowException(new \Exception($message = 'error message')); | 149 | ->willThrowException(new \Exception($message = 'error message')); |
153 | ; | 150 | ; |
154 | 151 | ||
155 | $this->container->sessionManager = $this->createMock(SessionManager::class); | ||
156 | $this->container->sessionManager | 152 | $this->container->sessionManager |
157 | ->expects(static::once()) | 153 | ->expects(static::once()) |
158 | ->method('setSessionParameter') | 154 | ->method('setSessionParameter') |