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 <chrisc@catalyst.net.nz>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit e6bf76b9c7)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Andrew Isherwood 2018-09-26 14:04:00 +01:00 committed by Martin Renvoize
parent c3591642dc
commit ef93ed60ac
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 1 additions and 16 deletions

View File

@ -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}),
{