summaryrefslogtreecommitdiffstats
path: root/t/04_find_archives.t
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-08-19 14:48:47 +0200
committerFlorian Pritz <bluewind@xinu.at>2018-08-19 14:48:47 +0200
commit13f51c2044fb22f6b3cb8c674a23fe636f7fb33d (patch)
treedc7d9cc7aabff00fd59f1a255faf4c1ce581e65b /t/04_find_archives.t
parentdcb88a73de56ed32368ebbf9b22053b2c1b1c89b (diff)
downloadApp-BorgRestore-13f51c2044fb22f6b3cb8c674a23fe636f7fb33d.tar.gz
App-BorgRestore-13f51c2044fb22f6b3cb8c674a23fe636f7fb33d.tar.xz
Reorganize tests
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 't/04_find_archives.t')
-rw-r--r--t/04_find_archives.t29
1 files changed, 0 insertions, 29 deletions
diff --git a/t/04_find_archives.t b/t/04_find_archives.t
deleted file mode 100644
index 7f0186a..0000000
--- a/t/04_find_archives.t
+++ /dev/null
@@ -1,29 +0,0 @@
-use strict;
-use warnings;
-
-use Test::More;
-use Test::MockObject;
-use Test::Differences;
-
-use App::BorgRestore;
-
-my $db = Test::MockObject->new();
-$db->mock('get_archives_for_path', sub {return [
- { modification_time => 5, archive => "test2"},
- { modification_time => 2, archive => "test1"},
- { modification_time => 10, archive => "test3"},
- { modification_time => 10, archive => "test4"},
- { modification_time => 2, archive => "test1-1"},
- { modification_time => 15, archive => "test5"},
- ];});
-
-my $app = App::BorgRestore->new_no_defaults({db => $db});
-
-eq_or_diff($app->find_archives('test/path'), [
- {archive => 'test1', modification_time => 2},
- {archive => 'test2', modification_time => 5},
- {archive => 'test3', modification_time => 10},
- {archive => 'test5', modification_time => 15},
-]);
-
-done_testing;