Add more tests on Entry controller

Also add more fixtures
This commit is contained in:
Jeremy
2015-02-10 22:32:42 +01:00
parent f59f45d740
commit eb3bd7efb7
5 changed files with 114 additions and 20 deletions

View File

@ -18,12 +18,12 @@ class WallabagTestCase extends WebTestCase
$this->client = static::createClient();
}
public function logIn()
public function logInAs($username)
{
$crawler = $this->client->request('GET', '/login');
$form = $crawler->filter('button[type=submit]')->form();
$data = array(
'_username' => 'admin',
'_username' => $username,
'_password' => 'test',
);