Bugzilla – Attachment 104027 Details for
Bug 25303
Koha::Objects->delete should not skip overridden object class ->delete
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25303: Add a test for ->reset
Bug-25303-Add-a-test-for--reset.patch (text/plain), 953 bytes, created by
Jonathan Druart
on 2020-04-30 12:16:05 UTC
(
hide
)
Description:
Bug 25303: Add a test for ->reset
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-04-30 12:16:05 UTC
Size:
953 bytes
patch
obsolete
>From 5c6cdf1b079ccc02753c5d140ee67eb7c92f0721 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 30 Apr 2020 14:15:28 +0200 >Subject: [PATCH] Bug 25303: Add a test for ->reset > >--- > t/db_dependent/Koha/Objects.t | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/Objects.t b/t/db_dependent/Koha/Objects.t >index 0baf3618f3..28550324e1 100644 >--- a/t/db_dependent/Koha/Objects.t >+++ b/t/db_dependent/Koha/Objects.t >@@ -846,7 +846,9 @@ subtest 'delete() tests' => sub { > $builder->build_object( { class => 'Koha::Cities' } ); > $builder->build_object( { class => 'Koha::Cities' } ); > >- warnings_are { Koha::Cities->delete } >+ my $cities = Koha::Cities->search; >+ $cities->next; >+ warnings_are { $cities->delete } > [ "delete called!", "delete called!" ], > "No warnings, no Koha::City->delete called as it doesn't exist"; > >-- >2.20.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 25303
:
103855
|
103859
|
103864
|
103865
|
103941
|
103998
|
104018
| 104027