aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Tests/WallabagTestCase.php
diff options
context:
space:
mode:
authorJeremy <jeremy.benoist@gmail.com>2015-02-10 22:32:42 +0100
committerJeremy <jeremy.benoist@gmail.com>2015-02-10 22:32:42 +0100
commiteb3bd7efb73f2e8500b6415e16438cea77aa4e9a (patch)
treed42ff8fbd1138d8995e45815d9bc5260aa458e6c /src/Wallabag/CoreBundle/Tests/WallabagTestCase.php
parentf59f45d74093e92656f9717c8c5f4e37c56d2173 (diff)
downloadwallabag-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.php4
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