aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2017-06-14 15:02:34 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2017-06-20 16:03:39 +0200
commitbead8b42da4f17238dc0d5e0f90184b224ec5df7 (patch)
tree67af15e3f45dc496e492767095e5f4b477e56848 /tests
parent906424c1b6fd884bf2081bfe6dd0b1f9651c2801 (diff)
downloadwallabag-bead8b42da4f17238dc0d5e0f90184b224ec5df7.tar.gz
wallabag-bead8b42da4f17238dc0d5e0f90184b224ec5df7.tar.zst
wallabag-bead8b42da4f17238dc0d5e0f90184b224ec5df7.zip
Fix reviews
Encrypt username too Redirect to list after saving credentials Fix typos Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'tests')
-rw-r--r--tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php2
-rw-r--r--tests/Wallabag/CoreBundle/Controller/SiteCredentialControllerTest.php1
2 files changed, 1 insertions, 2 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
index 80380685..f17dc97b 100644
--- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
+++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
@@ -1340,7 +1340,7 @@ class EntryControllerTest extends WallabagCoreTestCase
1340 $user = $client->getContainer()->get('security.token_storage')->getToken()->getUser(); 1340 $user = $client->getContainer()->get('security.token_storage')->getToken()->getUser();
1341 $credential = new SiteCredential($user); 1341 $credential = new SiteCredential($user);
1342 $credential->setHost('monde-diplomatique.fr'); 1342 $credential->setHost('monde-diplomatique.fr');
1343 $credential->setUsername('foo'); 1343 $credential->setUsername($client->getContainer()->get('wallabag_core.helper.crypto_proxy')->crypt('foo'));
1344 $credential->setPassword($client->getContainer()->get('wallabag_core.helper.crypto_proxy')->crypt('bar')); 1344 $credential->setPassword($client->getContainer()->get('wallabag_core.helper.crypto_proxy')->crypt('bar'));
1345 1345
1346 $em->persist($credential); 1346 $em->persist($credential);
diff --git a/tests/Wallabag/CoreBundle/Controller/SiteCredentialControllerTest.php b/tests/Wallabag/CoreBundle/Controller/SiteCredentialControllerTest.php
index 7e6dafee..e73a9743 100644
--- a/tests/Wallabag/CoreBundle/Controller/SiteCredentialControllerTest.php
+++ b/tests/Wallabag/CoreBundle/Controller/SiteCredentialControllerTest.php
@@ -85,7 +85,6 @@ class SiteCredentialControllerTest extends WallabagCoreTestCase
85 $crawler = $client->followRedirect(); 85 $crawler = $client->followRedirect();
86 86
87 $this->assertContains('flashes.site_credential.notice.updated', $crawler->filter('body')->extract(['_text'])[0]); 87 $this->assertContains('flashes.site_credential.notice.updated', $crawler->filter('body')->extract(['_text'])[0]);
88 $this->assertContains('larry', $crawler->filter('input[id=site_credential_username]')->attr('value'));
89 } 88 }
90 89
91 public function testEditFromADifferentUserSiteCredential() 90 public function testEditFromADifferentUserSiteCredential()