diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-02-11 06:45:14 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-02-11 06:45:14 +0100 |
commit | fa8d56393413fc599a972699ad4780e92f1a2010 (patch) | |
tree | 5ed25ecf43e6af0a8da5a13704fd51aae42a21c0 /src/Wallabag/CoreBundle/Tests/WallabagTestCase.php | |
parent | f59f45d74093e92656f9717c8c5f4e37c56d2173 (diff) | |
parent | da93261a7d729084c4913e8dcc5052a781426ef7 (diff) | |
download | wallabag-fa8d56393413fc599a972699ad4780e92f1a2010.tar.gz wallabag-fa8d56393413fc599a972699ad4780e92f1a2010.tar.zst wallabag-fa8d56393413fc599a972699ad4780e92f1a2010.zip |
Merge pull request #1072 from wallabag/v2-entry-test
Add more tests to Entry controller + security
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 | ||