]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/CoreBundle/Tests/WallabagTestCase.php
Merge pull request #1069 from wallabag/v2-fix-return-entries
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Tests / WallabagTestCase.php
CommitLineData
3b815d2d
J
1<?php
2
3namespace Wallabag\CoreBundle\Tests;
4
5use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
3b815d2d
J
6
7class WallabagTestCase extends WebTestCase
8{
9 private $client = null;
10
11 public function getClient()
12 {
13 return $this->client;
14 }
15
16 public function setUp()
17 {
18 $this->client = static::createClient();
19 }
20
21 public function logIn()
22 {
23 $crawler = $this->client->request('GET', '/login');
24 $form = $crawler->filter('button[type=submit]')->form();
25 $data = array(
26 '_username' => 'admin',
27 '_password' => 'test',
28 );
29
30 $this->client->submit($form, $data);
31 }
32}