3 namespace Wallabag\CoreBundle\Tests
;
5 use Symfony\Bundle\FrameworkBundle\Test\WebTestCase
;
6 use Symfony\Component\BrowserKit\Cookie
;
7 use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken
;
9 class WallabagTestCase
extends WebTestCase
11 private $client = null;
13 public function getClient()
18 public function setUp()
20 $this->client
= static::createClient();
23 public function logIn()
25 $crawler = $this->client
->request('GET', '/login');
26 $form = $crawler->filter('button[type=submit]')->form();
28 '_username' => 'admin',
29 '_password' => 'test',
32 $this->client
->submit($form, $data);