$this->assertCount(1, $crawler->filter('div[class=entry]'));
}
+ public function testFilterOnIsPublic()
+ {
+ $this->logInAs('admin');
+ $this->useTheme('baggy');
+ $client = $this->getClient();
+
+ $crawler = $client->request('GET', '/unread/list');
+ $form = $crawler->filter('button[id=submit-filter]')->form();
+ $form['entry_filter[isPublic]']->tick();
+
+ $crawler = $client->submit($form);
+ $this->assertCount(0, $crawler->filter('div[class=entry]'));
+ }
+
public function testPreviewPictureFilter()
{
$this->logInAs('admin');
$user = $client->getContainer()->get('security.token_storage')->getToken()->getUser();
$credential = new SiteCredential($user);
$credential->setHost('monde-diplomatique.fr');
- $credential->setUsername('foo');
+ $credential->setUsername($client->getContainer()->get('wallabag_core.helper.crypto_proxy')->crypt('foo'));
$credential->setPassword($client->getContainer()->get('wallabag_core.helper.crypto_proxy')->crypt('bar'));
$em->persist($credential);