mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-27 03:21:01 +00:00
Fix tests
This commit is contained in:
parent
d8f8a59010
commit
d6a9e139dc
2 changed files with 6 additions and 2 deletions
|
@ -38,6 +38,10 @@ class EntryFilterType extends AbstractType
|
|||
'apply_filter' => function (QueryInterface $filterQuery, $field, $values) {
|
||||
$value = $values['value'];
|
||||
|
||||
if (null === $value['left_number'][0] || null === $value['right_number'][0]) {
|
||||
return;
|
||||
}
|
||||
|
||||
$min = (int) ($value['left_number'][0] * $this->user->getConfig()->getReadingSpeed());
|
||||
$max = (int) ($value['right_number'][0] * $this->user->getConfig()->getReadingSpeed());
|
||||
|
||||
|
|
|
@ -462,8 +462,8 @@ class EntryControllerTest extends WallabagCoreTestCase
|
|||
$form = $crawler->filter('button[id=submit-filter]')->form();
|
||||
|
||||
$data = [
|
||||
'entry_filter[readingTime][right_number]' => 11,
|
||||
'entry_filter[readingTime][left_number]' => 11,
|
||||
'entry_filter[readingTime][right_number]' => 22,
|
||||
'entry_filter[readingTime][left_number]' => 22,
|
||||
];
|
||||
|
||||
$crawler = $client->submit($form, $data);
|
||||
|
|
Loading…
Reference in a new issue