Bugzilla – Attachment 175922 Details for
Bug 38782
ERM eUsage related tests are failing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38782: Mock userenv->{number}
Bug-38782-Mock-userenv-number.patch (text/plain), 1.05 KB, created by
Pedro Amorim
on 2024-12-24 10:42:24 UTC
(
hide
)
Description:
Bug 38782: Mock userenv->{number}
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-12-24 10:42:24 UTC
Size:
1.05 KB
patch
obsolete
>From 9406489992e8460ff0dcbf24023e5b2cdc6793fe Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Tue, 24 Dec 2024 10:38:08 +0000 >Subject: [PATCH] Bug 38782: Mock userenv->{number} > >prove t/db_dependent/Koha/BackgroundJobs/ErmSushiHarvester.t >--- > t/db_dependent/Koha/BackgroundJobs/ErmSushiHarvester.t | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/t/db_dependent/Koha/BackgroundJobs/ErmSushiHarvester.t b/t/db_dependent/Koha/BackgroundJobs/ErmSushiHarvester.t >index ace123e7d4b..aa7dd5ef832 100755 >--- a/t/db_dependent/Koha/BackgroundJobs/ErmSushiHarvester.t >+++ b/t/db_dependent/Koha/BackgroundJobs/ErmSushiHarvester.t >@@ -86,6 +86,9 @@ subtest 'enqueue_sushi_harvest_jobs' => sub { > > $schema->storage->txn_begin; > >+ my $patron = Koha::Patrons->search()->last; >+ t::lib::Mocks::mock_userenv( { number => $patron->borrowernumber } ); # Is superlibrarian >+ > my $usage_data_provider = $builder->build_object( > { class => 'Koha::ERM::EUsage::UsageDataProviders', value => { name => 'TestProvider' } } ); > >-- >2.39.5
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 38782
:
175922
|
175923
|
175924
|
175925
|
175926
|
175927
|
175928
|
175929
|
175930