diff options
Diffstat (limited to 'tests/Wallabag')
-rw-r--r-- | tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php | 2 | ||||
-rw-r--r-- | tests/Wallabag/CoreBundle/Controller/SiteCredentialControllerTest.php | 1 |
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() |