diff options
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') |