+ 'entry_filter[httpStatus]' => 200,
+ ];
+
+ $crawler = $client->submit($form, $data);
+
+ $this->assertCount(2, $crawler->filter('div[class=entry]'));
+
+ $crawler = $client->request('GET', '/all/list');
+ $form = $crawler->filter('button[id=submit-filter]')->form();
+
+ $data = [
+ 'entry_filter[httpStatus]' => 1024,
+ ];
+
+ $crawler = $client->submit($form, $data);
+
+ $this->assertCount(8, $crawler->filter('div[class=entry]'));
+ }
+
+ public function testSearch()
+ {
+ $this->logInAs('admin');
+ $this->useTheme('baggy');
+ $client = $this->getClient();
+
+ $entry = new Entry($this->getLoggedInUser());
+ $entry->setUrl($this->url);
+ $entry->setTitle('test');
+ $this->getEntityManager()->persist($entry);
+ $this->getEntityManager()->flush();
+
+ // Search on unread list
+ $crawler = $client->request('GET', '/unread/list');
+
+ $form = $crawler->filter('form[name=search]')->form();
+ $data = [
+ 'search_entry[term]' => 'title',
+ ];
+
+ $crawler = $client->submit($form, $data);
+
+ $this->assertCount(4, $crawler->filter('div[class=entry]'));
+
+ // Search on starred list
+ $crawler = $client->request('GET', '/starred/list');
+
+ $entry = new Entry($this->getLoggedInUser());
+ $entry->setUrl('http://localhost/foo/bar');
+ $entry->setTitle('testeur');
+ $entry->setStarred(true);
+ $this->getEntityManager()->persist($entry);
+ $this->getEntityManager()->flush();
+
+ $form = $crawler->filter('form[name=search]')->form();
+ $data = [
+ 'search_entry[term]' => 'testeur',