aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/front/controller/admin/ExportControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/front/controller/admin/ExportControllerTest.php')
-rw-r--r--tests/front/controller/admin/ExportControllerTest.php6
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
3declare(strict_types=1); 3declare(strict_types=1);
4 4
5namespace front\controller\admin; 5namespace Shaarli\Front\Controller\Admin;
6 6
7use PHPUnit\Framework\TestCase; 7use PHPUnit\Framework\TestCase;
8use Shaarli\Bookmark\Bookmark; 8use Shaarli\Bookmark\Bookmark;
9use Shaarli\Formatter\BookmarkFormatter; 9use Shaarli\Formatter\BookmarkFormatter;
10use Shaarli\Formatter\BookmarkRawFormatter; 10use Shaarli\Formatter\BookmarkRawFormatter;
11use Shaarli\Front\Controller\Admin\ExportController;
12use Shaarli\Front\Controller\Admin\FrontAdminControllerMockHelper;
13use Shaarli\Netscape\NetscapeBookmarkUtils; 11use Shaarli\Netscape\NetscapeBookmarkUtils;
14use Shaarli\Security\SessionManager; 12use Shaarli\Security\SessionManager;
15use Slim\Http\Request; 13use 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')