]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Tests/WallabagTestCase.php
Add more tests on Entry controller
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Tests / WallabagTestCase.php
index edc7d9927acffb76a211907262a8300bada81412..a80b8bac426e2093dbdc2ebdec926424851e5eae 100644 (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',
         );