Bugzilla – Attachment 157436 Details for
Bug 33970
We need a "backend" column in "illrequestattributes" table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33970: Fix tests
Bug-33970-Fix-tests.patch (text/plain), 2.43 KB, created by
Martin Renvoize (ashimema)
on 2023-10-19 13:40:24 UTC
(
hide
)
Description:
Bug 33970: Fix tests
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-10-19 13:40:24 UTC
Size:
2.43 KB
patch
obsolete
>From e70e74c31fdff55690a38f874874d28d87931263 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Tue, 29 Aug 2023 15:16:53 +0000 >Subject: [PATCH] Bug 33970: Fix tests > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > t/db_dependent/Illrequestattributes.t | 39 ++++++++++++++++++--------- > 1 file changed, 27 insertions(+), 12 deletions(-) > >diff --git a/t/db_dependent/Illrequestattributes.t b/t/db_dependent/Illrequestattributes.t >index d81215fdc27..780c59a3e80 100755 >--- a/t/db_dependent/Illrequestattributes.t >+++ b/t/db_dependent/Illrequestattributes.t >@@ -30,7 +30,7 @@ use_ok('Koha::Illrequestattributes'); > > subtest 'Basic object tests' => sub { > >- plan tests => 5; >+ plan tests => 6; > > $schema->storage->txn_begin; > >@@ -38,25 +38,40 @@ subtest 'Basic object tests' => sub { > > my $builder = t::lib::TestBuilder->new; > >- my $illrqattr = $builder->build({ source => 'Illrequestattribute' }); >+ my $illrqattr = $builder->build( { source => 'Illrequestattribute' } ); > > my $illrqattr_obj = Koha::Illrequestattributes->find( > $illrqattr->{illrequest_id}, >+ $illrqattr->{backend}, > $illrqattr->{type} > ); >- isa_ok($illrqattr_obj, 'Koha::Illrequestattribute', >- "Correctly create and load an illrequestattribute object."); >- is($illrqattr_obj->illrequest_id, $illrqattr->{illrequest_id}, >- "Illrequest_id getter works."); >- is($illrqattr_obj->type, $illrqattr->{type}, >- "Type getter works."); >- is($illrqattr_obj->value, $illrqattr->{value}, >- "Value getter works."); >+ isa_ok( >+ $illrqattr_obj, 'Koha::Illrequestattribute', >+ "Correctly create and load an illrequestattribute object." >+ ); >+ is( >+ $illrqattr_obj->illrequest_id, $illrqattr->{illrequest_id}, >+ "Illrequest_id getter works." >+ ); >+ is( >+ $illrqattr_obj->backend, $illrqattr->{backend}, >+ "Backend getter works." >+ ); >+ is( >+ $illrqattr_obj->type, $illrqattr->{type}, >+ "Type getter works." >+ ); >+ is( >+ $illrqattr_obj->value, $illrqattr->{value}, >+ "Value getter works." >+ ); > > $illrqattr_obj->delete; > >- is(Koha::Illrequestattributes->search->count, 0, >- "No attributes found after delete."); >+ is( >+ Koha::Illrequestattributes->search->count, 0, >+ "No attributes found after delete." >+ ); > > $schema->storage->txn_rollback; > }; >-- >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 33970
:
152250
|
152251
|
152252
|
153263
|
153264
|
153265
|
154903
|
157433
|
157434
|
157435
| 157436 |
157437