From ef93ed60acf10d47a92669490eff1acda3abc135 Mon Sep 17 00:00:00 2001 From: Andrew Isherwood 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! Signed-off-by: Chris Cormack Signed-off-by: Nick Clemens (cherry picked from commit e6bf76b9c712913e549f43a30830ea612c73befa) Signed-off-by: Martin Renvoize --- 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.20.1