]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - tests/front/controller/admin/ManageShaareControllerTest/DeleteBookmarkTest.php
Add strict types for bookmarks management
[github/shaarli/Shaarli.git] / tests / front / controller / admin / ManageShaareControllerTest / DeleteBookmarkTest.php
index ba774e2119137248bd5d23797137bbc006327f0f..83bbee7c39909c8867028d3908e5e44df0ac92a3 100644 (file)
@@ -356,6 +356,10 @@ class DeleteBookmarkTest extends TestCase
         ;
         $response = new Response();
 
+        $this->container->bookmarkService->method('get')->with('123')->willReturn(
+            (new Bookmark())->setId(123)->setUrl('http://domain.tld')->setTitle('Title 123')
+        );
+
         $this->container->formatterFactory = $this->createMock(FormatterFactory::class);
         $this->container->formatterFactory
             ->expects(static::once())