Bugzilla – Attachment 155806 Details for
Bug 32942
Suggestion API doesn't support custom statuses
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32942: (QA follow-up) Fix regression test
Bug-32942-QA-follow-up-Fix-regression-test.patch (text/plain), 1.22 KB, created by
Martin Renvoize (ashimema)
on 2023-09-18 12:02:27 UTC
(
hide
)
Description:
Bug 32942: (QA follow-up) Fix regression test
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-09-18 12:02:27 UTC
Size:
1.22 KB
patch
obsolete
>From 2aff2ddefc3d4d3cb5b334ade66d1c732b74d6b5 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 18 Sep 2023 12:59:50 +0100 >Subject: [PATCH] Bug 32942: (QA follow-up) Fix regression test > >With the move to checking status during store, we broke the api >regression test introduced earlier in the patch set. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > t/db_dependent/api/v1/suggestions.t | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/t/db_dependent/api/v1/suggestions.t b/t/db_dependent/api/v1/suggestions.t >index 64979eed87c..b7b06935277 100755 >--- a/t/db_dependent/api/v1/suggestions.t >+++ b/t/db_dependent/api/v1/suggestions.t >@@ -133,6 +133,12 @@ subtest 'get() tests' => sub { > "//$userid:$password@/api/v1/suggestions/" . $suggestion->id ) > ->status_is(200)->json_is( $suggestion->to_api ); > >+ my $authorised_value = Koha::AuthorisedValue->new( >+ { >+ category => 'SUGGEST_STATUS', >+ authorised_value => 'FREDERIC' >+ } >+ )->store; > $suggestion->STATUS('FREDERIC')->store->discard_changes; > > $t->get_ok( "//$userid:$password@/api/v1/suggestions/" . $suggestion->id )->status_is(200) >-- >2.41.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32942
:
146508
|
146592
|
146593
|
146594
|
154642
|
154643
|
155801
|
155802
|
155803
|
155804
|
155805
| 155806 |
155900
|
155901
|
155902
|
155903
|
155904
|
155905
|
155906