[Koha-bugs] [Bug 28585] Cannot search on date fields

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 21 20:43:34 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28585

--- Comment #34 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
I noticed I wrote this comment too fast, and maybe someone reading this back
would benefit from a more detailed explanation, sorry for that :-D

(In reply to Tomás Cohen Arazi from comment #32)
> Any PUT test on patrons is testing that implicitly.

^^ This tried to mean that:

```
  my $json = $builder->build_object({ class => 'Koha::Patrons' })->to_api;
```

will have any date/date-time attribute filled with a random date/date-time
(that's what TestBuilder does, and to_api converts to the correct format),
which the POST and PUT tests already test when they do things like this:

```
   is_deeply($got, $newpatron, 'Returned patron from update matches expected');
```

Anyhow, we better have explicit tests for special things we want to highlight.
Good catch, RM.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list