aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/front/controller/admin/PostBookmarkControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/front/controller/admin/PostBookmarkControllerTest.php')
-rw-r--r--tests/front/controller/admin/PostBookmarkControllerTest.php19
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/front/controller/admin/PostBookmarkControllerTest.php b/tests/front/controller/admin/PostBookmarkControllerTest.php
index f00a15c9..69673bd2 100644
--- a/tests/front/controller/admin/PostBookmarkControllerTest.php
+++ b/tests/front/controller/admin/PostBookmarkControllerTest.php
@@ -13,7 +13,6 @@ use Shaarli\Security\SessionManager;
13use Shaarli\Thumbnailer; 13use Shaarli\Thumbnailer;
14use Slim\Http\Request; 14use Slim\Http\Request;
15use Slim\Http\Response; 15use Slim\Http\Response;
16use Slim\Http\Uri;
17 16
18class PostBookmarkControllerTest extends TestCase 17class PostBookmarkControllerTest extends TestCase
19{ 18{
@@ -406,12 +405,6 @@ class PostBookmarkControllerTest extends TestCase
406 return $parameters[$key] ?? null; 405 return $parameters[$key] ?? null;
407 }) 406 })
408 ; 407 ;
409 $request->method('getUri')->willReturnCallback(function (): Uri {
410 $uri = $this->createMock(Uri::class);
411 $uri->method('getBasePath')->willReturn('/subfolder');
412
413 return $uri;
414 });
415 $response = new Response(); 408 $response = new Response();
416 409
417 $checkBookmark = function (Bookmark $bookmark) use ($parameters) { 410 $checkBookmark = function (Bookmark $bookmark) use ($parameters) {
@@ -493,12 +486,6 @@ class PostBookmarkControllerTest extends TestCase
493 return $parameters[$key] ?? null; 486 return $parameters[$key] ?? null;
494 }) 487 })
495 ; 488 ;
496 $request->method('getUri')->willReturnCallback(function (): Uri {
497 $uri = $this->createMock(Uri::class);
498 $uri->method('getBasePath')->willReturn('/subfolder');
499
500 return $uri;
501 });
502 $response = new Response(); 489 $response = new Response();
503 490
504 $checkBookmark = function (Bookmark $bookmark) use ($parameters, $id) { 491 $checkBookmark = function (Bookmark $bookmark) use ($parameters, $id) {
@@ -575,12 +562,6 @@ class PostBookmarkControllerTest extends TestCase
575 return $parameters[$key] ?? null; 562 return $parameters[$key] ?? null;
576 }) 563 })
577 ; 564 ;
578 $request->method('getUri')->willReturnCallback(function (): Uri {
579 $uri = $this->createMock(Uri::class);
580 $uri->method('getBasePath')->willReturn('/subfolder');
581
582 return $uri;
583 });
584 $response = new Response(); 565 $response = new Response();
585 566
586 $this->container->conf = $this->createMock(ConfigManager::class); 567 $this->container->conf = $this->createMock(ConfigManager::class);