]> 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)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Tue, 21 Mar 2023 16:30:33 +0000 (16:30 +0000)
commitf481f79d833ebaaee07f395d8f66c36fc5945d41
treeddf915348ddb0c81185132f285016085f9b6e53f
parentf604e721e8381519cf880bef4e3d7f8c0b2052c7
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>
(cherry picked from commit 2202f7f2c29444b5cc587e09729cbf770323d96b)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
t/Koha/REST/Plugin/Query.t
t/db_dependent/api/v1/query.t