Bugzilla – Attachment 69965 Details for
Bug 19828
Koha::Object->store should catch DBIC exceptions and raise Koha::Exceptions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19828: Fix tests that expect DBD errors instead of the exception message
Bug-19828-Fix-tests-that-expect-DBD-errors-instead.patch (text/plain), 981 bytes, created by
Tomás Cohen Arazi (tcohen)
on 2017-12-20 19:11:36 UTC
(
hide
)
Description:
Bug 19828: Fix tests that expect DBD errors instead of the exception message
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2017-12-20 19:11:36 UTC
Size:
981 bytes
patch
obsolete
>From 82f47548f5be7c6d211219483b38c6bdaf9beab2 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 20 Dec 2017 15:33:48 -0300 >Subject: [PATCH] Bug 19828: Fix tests that expect DBD errors instead of the > exception message > >--- > t/db_dependent/Circulation/Returns.t | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/t/db_dependent/Circulation/Returns.t b/t/db_dependent/Circulation/Returns.t >index de941f22e4..e97ebe3bde 100644 >--- a/t/db_dependent/Circulation/Returns.t >+++ b/t/db_dependent/Circulation/Returns.t >@@ -318,7 +318,7 @@ subtest 'Handle ids duplication' => sub { > } > [ > qr{.*DBD::mysql::st execute failed: Duplicate entry.*}, >- { carped => qr{The checkin for the following issue failed.*DBIx::Class::Storage::DBI::_dbh_execute.*} } >+ { carped => qr{The checkin for the following issue failed.*Duplicate ID.*} } > ], > 'DBD should have raised an error about dup primary key'; > >-- >2.15.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 19828
:
69857
|
69858
|
69907
|
69908
|
69963
|
69964
|
69965
|
70048
|
70049
|
70050
|
70097
|
70098
|
70099
|
70100