namespace Shaarli\Front\Controller\Visitor;
-use PHPUnit\Framework\TestCase;
+use Shaarli\TestCase;
use Slim\Http\Request;
use Slim\Http\Response;
static::assertInstanceOf(Response::class, $result);
static::assertSame(302, $result->getStatusCode());
- static::assertSame(['/controller/?searchtags=def+abc'], $result->getHeader('location'));
+ static::assertSame(['/controller/?searchtags=def%40abc'], $result->getHeader('location'));
}
public function testAddTagWithoutRefererAndExistingSearch(): void
static::assertInstanceOf(Response::class, $result);
static::assertSame(302, $result->getStatusCode());
- static::assertSame(['/controller/?searchtags=def+abc'], $result->getHeader('location'));
+ static::assertSame(['/controller/?searchtags=def%40abc'], $result->getHeader('location'));
}
public function testAddTagResetPagination(): void
static::assertInstanceOf(Response::class, $result);
static::assertSame(302, $result->getStatusCode());
- static::assertSame(['/controller/?searchtags=def+abc'], $result->getHeader('location'));
+ static::assertSame(['/controller/?searchtags=def%40abc'], $result->getHeader('location'));
}
public function testAddTagWithRefererAndEmptySearch(): void