use Pagerfanta\Pagerfanta;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
-use Symfony\Component\HttpFoundation\Response;
-use Symfony\Component\HttpKernel\Exception\HttpException;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
-use Wallabag\CoreBundle\Entity\Entry;
-use Wallabag\CoreBundle\Entity\Tag;
-use Wallabag\CoreBundle\Event\EntryDeletedEvent;
-use Wallabag\CoreBundle\Event\EntrySavedEvent;
class SearchRestController extends WallabagRestController
{
use Tests\Wallabag\ApiBundle\WallabagApiTestCase;
use Wallabag\CoreBundle\Entity\Entry;
-use Wallabag\CoreBundle\Entity\Tag;
-use Wallabag\CoreBundle\Helper\ContentProxy;
-use Wallabag\UserBundle\Entity\User;
class SearchRestControllerTest extends WallabagApiTestCase
{
$this->client->request('GET', '/api/search', [
'page' => 1,
'perPage' => 2,
- 'term' => 'entry' // 6 results
+ 'term' => 'entry', // 6 results
]);
$this->assertSame(200, $this->client->getResponse()->getStatusCode());
public function testGetSearchWithNoLimit()
{
$this->client->request('GET', '/api/search', [
- 'term' => 'entry'
+ 'term' => 'entry',
]);
$this->assertSame(200, $this->client->getResponse()->getStatusCode());