Bug 18851: (QA followup) Test doesn't need sessions on DB
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 7 Aug 2017 15:33:50 +0000 (12:33 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 8 Aug 2017 12:21:06 +0000 (09:21 -0300)
As the DB structure is not initialized for sessions, running this tests raise an irrelevant warning.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/Koha_ExternalContent_OverDrive.t

index f4cb775..8afa226 100755 (executable)
@@ -29,6 +29,8 @@ SKIP: {
 
     use_ok('Koha::ExternalContent::OverDrive');
 
+    t::lib::Mocks::mock_preference('SessionStorage','tmp');
+
     t::lib::Mocks::mock_preference('OverDriveClientKey', 'DUMMY');
     t::lib::Mocks::mock_preference('OverDriveClientSecret', 'DUMMY');
     t::lib::Mocks::mock_preference('OverDriveLibraryID', 'DUMMY');