Bugzilla – Attachment 151188 Details for
Bug 33580
Bring back ability to mark item as seen via SIP2 item information request
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33580: fix tests
Bug-33580-fix-tests.patch (text/plain), 1.86 KB, created by
Jonathan Druart
on 2023-05-15 08:50:35 UTC
(
hide
)
Description:
Bug 33580: fix tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-05-15 08:50:35 UTC
Size:
1.86 KB
patch
obsolete
>From 6c824b08e9d171a53b03ea898c1e7a0434cbd4fc Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 15 May 2023 10:50:12 +0200 >Subject: [PATCH] Bug 33580: fix tests > >--- > t/db_dependent/SIP/Message.t | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > >diff --git a/t/db_dependent/SIP/Message.t b/t/db_dependent/SIP/Message.t >index 878680c277d..f9a80b91a6e 100755 >--- a/t/db_dependent/SIP/Message.t >+++ b/t/db_dependent/SIP/Message.t >@@ -452,20 +452,21 @@ subtest "Test cr_item_field" => sub { > $server->{account}->{seen_on_item_information} = ''; > $msg->handle_item_information( $server ); > $item_object->get_from_storage; >- is( $item_object->datelastseen, "1900-01-01", "datelastseen remains unchanged" ); >+ my $stored_date = "1900-01-01 00:00:00"; >+ is( $item_object->datelastseen, $stored_date, "datelastseen remains unchanged" ); > > $item_object->update({ itemlost => 1, datelastseen => '1900-01-01' }); > $server->{account}->{seen_on_item_information} = 'keep_lost'; > $msg->handle_item_information( $server ); > $item_object = Koha::Items->find( $item_object->id ); >- isnt( $item_object->datelastseen, "1900-01-01", "datelastseen updated" ); >+ isnt( $item_object->datelastseen, $stored_date, "datelastseen updated" ); > is( $item_object->itemlost, 1, "item remains lost" ); > > $item_object->update({ itemlost => 1, datelastseen => '1900-01-01' }); > $server->{account}->{seen_on_item_information} = 'mark_found'; > $msg->handle_item_information( $server ); > $item_object = Koha::Items->find( $item_object->id ); >- isnt( $item_object->datelastseen, "1900-01-01", "datelastseen updated" ); >+ isnt( $item_object->datelastseen, $stored_date, "datelastseen updated" ); > is( $item_object->itemlost, 0, "item is no longer lost" ); > > my $itype = $item_object->itype; >-- >2.25.1
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 33580
:
150032
|
150113
|
151123
| 151188