[Koha-bugs] [Bug 19234] Add query parameters handling helpers

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 21 15:45:25 CEST 2017


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

--- Comment #7 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Comment on attachment 66991
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=66991
Bug 19234: Unit tests for query parameters handling helpers

Review of attachment 66991:
 --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=19234&attachment=66991)
-----------------------------------------------------------------

::: t/Koha/REST/Plugin/Query.t
@@ +68,5 @@
> +
> +    $t->get_ok('/query')
> +      ->status_is( 200 )
> +      ->json_is( '/attributes' => { page => 2, rows => 3 } )
> +      ->json_is( '/filter' => { firstname => { like => 'Manuel%' }, surname => { like => 'Cohen Arazi%' } } );

Is it by design that this 'like' is actually a 'starts with' rather than a
'contains' search?

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


More information about the Koha-bugs mailing list