public function testAddTagWithReferer(): void
{
- $this->createValidContainerMockSet();
-
$this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/'];
$request = $this->createMock(Request::class);
public function testAddTagWithRefererAndExistingSearch(): void
{
- $this->createValidContainerMockSet();
-
$this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/?searchtags=def'];
$request = $this->createMock(Request::class);
public function testAddTagWithoutRefererAndExistingSearch(): void
{
- $this->createValidContainerMockSet();
-
$request = $this->createMock(Request::class);
$response = new Response();
public function testAddTagRemoveLegacyQueryParam(): void
{
- $this->createValidContainerMockSet();
-
$this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/?searchtags=def&addtag=abc'];
$request = $this->createMock(Request::class);
public function testAddTagResetPagination(): void
{
- $this->createValidContainerMockSet();
-
$this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/?searchtags=def&page=12'];
$request = $this->createMock(Request::class);
public function testAddTagWithRefererAndEmptySearch(): void
{
- $this->createValidContainerMockSet();
-
$this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/?searchtags='];
$request = $this->createMock(Request::class);
public function testAddTagWithoutNewTagWithReferer(): void
{
- $this->createValidContainerMockSet();
-
$this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/?searchtags=def'];
$request = $this->createMock(Request::class);
public function testAddTagWithoutNewTagWithoutReferer(): void
{
- $this->createValidContainerMockSet();
-
$request = $this->createMock(Request::class);
$response = new Response();
public function testRemoveTagWithoutMatchingTag(): void
{
- $this->createValidContainerMockSet();
-
$this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/?searchtags=def'];
$request = $this->createMock(Request::class);
public function testRemoveTagWithoutTagsearch(): void
{
- $this->createValidContainerMockSet();
-
$this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/'];
$request = $this->createMock(Request::class);
public function testRemoveTagWithoutReferer(): void
{
- $this->createValidContainerMockSet();
-
$request = $this->createMock(Request::class);
$response = new Response();
public function testRemoveTagWithoutTag(): void
{
- $this->createValidContainerMockSet();
-
$this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/?searchtag=abc'];
$request = $this->createMock(Request::class);
public function testRemoveTagWithoutTagWithoutReferer(): void
{
- $this->createValidContainerMockSet();
-
$request = $this->createMock(Request::class);
$response = new Response();