Bugzilla – Attachment 79414 Details for
Bug 20548
Remove copyright clearance workflow from staff created ILL requests
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20548: (follow-up) Fix unit tests
Bug-20548-follow-up-Fix-unit-tests.patch (text/plain), 1.85 KB, created by
Andrew Isherwood
on 2018-09-26 13:06:18 UTC
(
hide
)
Description:
Bug 20548: (follow-up) Fix unit tests
Filename:
MIME Type:
Creator:
Andrew Isherwood
Created:
2018-09-26 13:06:18 UTC
Size:
1.85 KB
patch
obsolete
>From 955a34cec9b2d5b398975dc8f94d53c9609c1a6f Mon Sep 17 00:00:00 2001 >From: Andrew Isherwood <andrew.isherwood@ptfs-europe.com> >Date: Wed, 26 Sep 2018 14:04:00 +0100 >Subject: [PATCH] Bug 20548: (follow-up) Fix unit tests > >Removed the "Backend create: copyright clearance" unit test since we no >longer have a "copyrightclearance" stage, hence we don't have a block in >the template handling it, hence the test failure! >--- > t/db_dependent/Illrequests.t | 17 +---------------- > 1 file changed, 1 insertion(+), 16 deletions(-) > >diff --git a/t/db_dependent/Illrequests.t b/t/db_dependent/Illrequests.t >index 761de9f12b..76de8fa1fb 100644 >--- a/t/db_dependent/Illrequests.t >+++ b/t/db_dependent/Illrequests.t >@@ -359,7 +359,7 @@ subtest 'Backend testing (mocks)' => sub { > > subtest 'Backend core methods' => sub { > >- plan tests => 18; >+ plan tests => 17; > > $schema->storage->txn_begin; > >@@ -407,21 +407,6 @@ subtest 'Backend core methods' => sub { > { stage => 'bar', method => 'create' }, > { stage => 'commit', method => 'create' }, > { stage => 'commit', method => 'create' }); >- # Test Copyright Clearance >- t::lib::Mocks::mock_preference("ILLModuleCopyrightClearance", "Test Copyright Clearance."); >- is_deeply($illrq->backend_create({test => 1}), >- { >- error => 0, >- status => '', >- message => '', >- method => 'create', >- stage => 'copyrightclearance', >- value => { >- backend => "Mock" >- } >- }, >- "Backend create: copyright clearance."); >- t::lib::Mocks::mock_preference("ILLModuleCopyrightClearance", ""); > # Test non-commit > is_deeply($illrq->backend_create({test => 1}), > { >-- >2.11.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 20548
:
73871
|
74155
|
74549
|
79051
|
79414
|
80243
|
80244