]> git.koha-community.org Git - koha.git/commit
Bug 32713: Unit tests
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 2 Mar 2023 09:37:14 +0000 (09:37 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 16 Mar 2023 19:12:26 +0000 (16:12 -0300)
commit2202f7f2c29444b5cc587e09729cbf770323d96b
treea4463bf92de3bd02f01e11b1ce7f78860b9b3fba
parent042cba5db1ee7752304e2e03c9a7b239ffe88735
Bug 32713: Unit tests

This patch adds unit tests to prove we return a 400 and an appropriate
error message when calling an endpoint that is not defined to support
x-koha-embed whilst passing an x-koha-embed header.

Test plan:
1) Run test prior to applying second patch and confirm it fails
2) Run test after applying second patch and confirm it passes

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
t/Koha/REST/Plugin/Query.t
t/db_dependent/api/v1/query.t