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:
parent
c3591642dc
commit
ef93ed60ac
|
|
@ -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}),
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue