Bugzilla – Attachment 65009 Details for
Bug 18407
REST API: Include renewability information on checkouts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18407: (squashable) Fix rollback issue
Bug-18407-squashable-Fix-rollback-issue.patch (text/plain), 1.55 KB, created by
Lari Taskula
on 2017-07-12 17:52:55 UTC
(
hide
)
Description:
Bug 18407: (squashable) Fix rollback issue
Filename:
MIME Type:
Creator:
Lari Taskula
Created:
2017-07-12 17:52:55 UTC
Size:
1.55 KB
patch
obsolete
>From c500c345a315074437c46527d56bec2ae673f472 Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@jns.fi> >Date: Wed, 12 Jul 2017 20:51:44 +0300 >Subject: [PATCH] Bug 18407: (squashable) Fix rollback issue > >--- > t/db_dependent/api/v1/checkoutsexpanded.t | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > >diff --git a/t/db_dependent/api/v1/checkoutsexpanded.t b/t/db_dependent/api/v1/checkoutsexpanded.t >index 22f851b..1a993dd 100644 >--- a/t/db_dependent/api/v1/checkoutsexpanded.t >+++ b/t/db_dependent/api/v1/checkoutsexpanded.t >@@ -41,11 +41,6 @@ t::lib::Mocks::mock_preference( 'SessionStorage', 'tmp' ); > my $remote_address = '127.0.0.1'; > my $t = Test::Mojo->new('Koha::REST::V1'); > >-# Mock userenv branchcode >-my $branchcode = $builder->build({ source => 'Branch' })->{ branchcode }; >-my $module = new Test::MockModule('C4::Context'); >-$module->mock('userenv', sub { { branch => $branchcode } }); >- > subtest 'get() tests' => sub { > plan tests => 34; > >@@ -55,6 +50,11 @@ subtest 'get() tests' => sub { > my ($borrowernumber, $sessionid) = create_user_and_session(); > my ($librariannnumber, $librariansessionid) = create_user_and_session(2); > >+ # Mock userenv branchcode >+ my $branchcode = $builder->build({ source => 'Branch' })->{ branchcode }; >+ my $module = new Test::MockModule('C4::Context'); >+ $module->mock('userenv', sub { { branch => $branchcode } }); >+ > # 1. Patrons > my $patron = Koha::Patrons->find($borrowernumber); > my $librarian = Koha::Patrons->find($librariannnumber); >-- >2.7.4
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 18407
:
61991
|
61992
|
61993
| 65009