diff options
author | Jeremy <jeremy.benoist@gmail.com> | 2015-02-10 22:32:42 +0100 |
---|---|---|
committer | Jeremy <jeremy.benoist@gmail.com> | 2015-02-10 22:32:42 +0100 |
commit | eb3bd7efb73f2e8500b6415e16438cea77aa4e9a (patch) | |
tree | d42ff8fbd1138d8995e45815d9bc5260aa458e6c /src/Wallabag/CoreBundle/Tests/WallabagTestCase.php | |
parent | f59f45d74093e92656f9717c8c5f4e37c56d2173 (diff) | |
download | wallabag-eb3bd7efb73f2e8500b6415e16438cea77aa4e9a.tar.gz wallabag-eb3bd7efb73f2e8500b6415e16438cea77aa4e9a.tar.zst wallabag-eb3bd7efb73f2e8500b6415e16438cea77aa4e9a.zip |
Add more tests on Entry controller
Also add more fixtures
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests/WallabagTestCase.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Tests/WallabagTestCase.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/WallabagTestCase.php b/src/Wallabag/CoreBundle/Tests/WallabagTestCase.php index edc7d992..a80b8bac 100644 --- a/src/Wallabag/CoreBundle/Tests/WallabagTestCase.php +++ b/src/Wallabag/CoreBundle/Tests/WallabagTestCase.php | |||
@@ -18,12 +18,12 @@ class WallabagTestCase extends WebTestCase | |||
18 | $this->client = static::createClient(); | 18 | $this->client = static::createClient(); |
19 | } | 19 | } |
20 | 20 | ||
21 | public function logIn() | 21 | public function logInAs($username) |
22 | { | 22 | { |
23 | $crawler = $this->client->request('GET', '/login'); | 23 | $crawler = $this->client->request('GET', '/login'); |
24 | $form = $crawler->filter('button[type=submit]')->form(); | 24 | $form = $crawler->filter('button[type=submit]')->form(); |
25 | $data = array( | 25 | $data = array( |
26 | '_username' => 'admin', | 26 | '_username' => $username, |
27 | '_password' => 'test', | 27 | '_password' => 'test', |
28 | ); | 28 | ); |
29 | 29 | ||