aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/front/controller/admin/ExportControllerTest.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-06-17 19:08:02 +0200
committerArthurHoaro <arthur@hoa.ro>2020-07-23 21:19:21 +0200
commit78657347c5b463d7c22bfc8c87b7db39fe058833 (patch)
treea61c513ce05a597119cb5e9e65a33a94e01663d9 /tests/front/controller/admin/ExportControllerTest.php
parentc70ff64a61d62cc8d35a62f30596ecc2a3c578a3 (diff)
downloadShaarli-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.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')