3 namespace Wallabag\CoreBundle\Tests
;
5 use Symfony\Bundle\FrameworkBundle\Test\WebTestCase
;
7 abstract class WallabagTestCase
extends WebTestCase
9 private $client = null;
11 public function getClient()
16 public function setUp()
18 $this->client
= static::createClient();
21 public function logInAs($username)
23 $crawler = $this->client
->request('GET', '/login');
24 $form = $crawler->filter('button[type=submit]')->form();
26 '_username' => $username,
27 '_password' => 'mypassword',
30 $this->client
->submit($form, $data);