unit test
This commit is contained in:
parent
47e12c3677
commit
d0b90fbe18
@ -4,8 +4,6 @@ namespace Wallabag\CoreBundle\Controller;
|
|||||||
|
|
||||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
|
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
|
||||||
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
|
||||||
use Wallabag\CoreBundle\Entity\Tag;
|
|
||||||
|
|
||||||
class TagController extends Controller
|
class TagController extends Controller
|
||||||
{
|
{
|
||||||
|
@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Wallabag\CoreBundle\Tests\Controller;
|
||||||
|
|
||||||
|
use Wallabag\CoreBundle\Tests\WallabagCoreTestCase;
|
||||||
|
use Doctrine\ORM\AbstractQuery;
|
||||||
|
|
||||||
|
class TagControllerTest extends WallabagCoreTestCase
|
||||||
|
{
|
||||||
|
public function testList()
|
||||||
|
{
|
||||||
|
$this->logInAs('admin');
|
||||||
|
$client = $this->getClient();
|
||||||
|
|
||||||
|
$client->request('GET', '/tag/list');
|
||||||
|
|
||||||
|
$this->assertEquals(200, $client->getResponse()->getStatusCode());
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user