declare(strict_types=1);
-namespace front\controller\admin;
+namespace Shaarli\Front\Controller\Admin;
-use PHPUnit\Framework\TestCase;
use Shaarli\Bookmark\Bookmark;
use Shaarli\Formatter\BookmarkFormatter;
use Shaarli\Formatter\BookmarkRawFormatter;
-use Shaarli\Front\Controller\Admin\ExportController;
-use Shaarli\Front\Controller\Admin\FrontAdminControllerMockHelper;
use Shaarli\Netscape\NetscapeBookmarkUtils;
use Shaarli\Security\SessionManager;
+use Shaarli\TestCase;
use Slim\Http\Request;
use Slim\Http\Response;
static::assertInstanceOf(BookmarkRawFormatter::class, $formatter);
static::assertSame($parameters['selection'], $selection);
static::assertTrue($prependNoteUrl);
- static::assertSame('http://shaarli', $indexUrl);
+ static::assertSame('http://shaarli/subfolder/', $indexUrl);
return $bookmarks;
}
$request = $this->createMock(Request::class);
$response = new Response();
- $this->container->sessionManager = $this->createMock(SessionManager::class);
$this->container->sessionManager
->expects(static::once())
->method('setSessionParameter')
->willThrowException(new \Exception($message = 'error message'));
;
- $this->container->sessionManager = $this->createMock(SessionManager::class);
$this->container->sessionManager
->expects(static::once())
->method('setSessionParameter')