aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-08-12 13:18:39 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-08-12 13:18:39 +0200
commit7fc14130c706fae27c5643a016b23de2bf29910d (patch)
tree66f3413870f50f9e657378022b1c8a048e6b030c /src/Wallabag
parent728a43285056c54bb1c0ec622ae9431f487d3a66 (diff)
downloadwallabag-7fc14130c706fae27c5643a016b23de2bf29910d.tar.gz
wallabag-7fc14130c706fae27c5643a016b23de2bf29910d.tar.zst
wallabag-7fc14130c706fae27c5643a016b23de2bf29910d.zip
add test
Diffstat (limited to 'src/Wallabag')
-rw-r--r--src/Wallabag/CoreBundle/Tests/Controller/SecurityControllerTest.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/SecurityControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/SecurityControllerTest.php
index a51e836d..759ef01b 100644
--- a/src/Wallabag/CoreBundle/Tests/Controller/SecurityControllerTest.php
+++ b/src/Wallabag/CoreBundle/Tests/Controller/SecurityControllerTest.php
@@ -40,6 +40,25 @@ class SecurityControllerTest extends WallabagCoreTestCase
40 $this->assertContains('Bad credentials', $client->getResponse()->getContent()); 40 $this->assertContains('Bad credentials', $client->getResponse()->getContent());
41 } 41 }
42 42
43 public function testRedirectionAfterLogin()
44 {
45 $client = $this->getClient();
46 $client->followRedirects();
47
48 $crawler = $client->request('GET', '/config');
49
50 $form = $crawler->filter('button[type=submit]')->form();
51
52 $data = array(
53 '_username' => 'admin',
54 '_password' => 'mypassword',
55 );
56
57 $client->submit($form, $data);
58
59 $this->assertContains('RSS', $client->getResponse()->getContent());
60 }
61
43 public function testForgotPassword() 62 public function testForgotPassword()
44 { 63 {
45 $client = $this->getClient(); 64 $client = $this->getClient();