namespace Wallabag\CoreBundle\Tests\Controller;
-use Wallabag\CoreBundle\Tests\WallabagTestCase;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Finder\Finder;
+use Wallabag\CoreBundle\Tests\WallabagCoreTestCase;
-class SecurityControllerTest extends WallabagTestCase
+class SecurityControllerTest extends WallabagCoreTestCase
{
public function testLogin()
{
$this->assertContains('Bad credentials', $client->getResponse()->getContent());
}
+ public function testRedirectionAfterLogin()
+ {
+ $client = $this->getClient();
+ $client->followRedirects();
+
+ $crawler = $client->request('GET', '/config');
+
+ $form = $crawler->filter('button[type=submit]')->form();
+
+ $data = array(
+ '_username' => 'admin',
+ '_password' => 'mypassword',
+ );
+
+ $client->submit($form, $data);
+
+ $this->assertContains('RSS', $client->getResponse()->getContent());
+ }
+
public function testForgotPassword()
{
$client = $this->getClient();
$client = $parameters['client'];
$data = array(
- 'forgot_password[email]' => 'baggy',
+ 'forgot_password[email]' => 'material',
);
$client->submit($form, $data);