if (strlen($value) <= 2 || empty($value)) {
return;
}
- $expression = $filterQuery->getExpr()->like($field, $filterQuery->getExpr()->literal('%'.$value.'%'));
+ $expression = $filterQuery->getExpr()->like($field, $filterQuery->getExpr()->lower($filterQuery->getExpr()->literal('%'.$value.'%')));
return $filterQuery->createCondition($expression);
},
$crawler = $client->submit($form, $data);
$this->assertCount(5, $crawler->filter('div[class=entry]'));
+ $crawler = $client->request('GET', '/unread/list');
+ $form = $crawler->filter('button[id=submit-filter]')->form();
+ $data = [
+ 'entry_filter[domainName]' => 'dOmain',
+ ];
+
+ $crawler = $client->submit($form, $data);
+ $this->assertCount(5, $crawler->filter('div[class=entry]'));
+
$form = $crawler->filter('button[id=submit-filter]')->form();
$data = [
'entry_filter[domainName]' => 'wallabag',