1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

Add isPublic filter on entries

This commit is contained in:
Jeremy Benoist 2017-06-10 15:00:52 +02:00
parent 873f6b8e03
commit e8911f7c09
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
16 changed files with 76 additions and 0 deletions

View file

@ -860,6 +860,20 @@ class EntryControllerTest extends WallabagCoreTestCase
$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');