Skip to content

Commit

Permalink
bug 2295 [2/4]: moving icondirectories.t from t to xt
Browse files Browse the repository at this point in the history
the icondirectories.t test depends on the database, so it needed to be
moved. But, it's really more of an author test since it's testinging the
correct structure of our distribution, so I'm moving it to xt/author.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
  • Loading branch information
amoore authored and Joshua Ferraro committed Jul 7, 2008
1 parent da82cb5 commit 599b3b5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions t/icondirectories.t → xt/author/icondirectories.t
Expand Up @@ -18,14 +18,15 @@ use warnings;

use lib qw( .. );

use C4::Koha;

use Data::Dumper;
use File::Find;
use Test::More tests => 1;
use Test::More tests => 3;

my $opac_icon_directory = 'koha-tmpl/opac-tmpl/prog/itemtypeimg';
my $staff_icon_directory = 'koha-tmpl/intranet-tmpl/prog/img/itemtypeimg';

my $opac_icon_directory = getitemtypeimagedir('opac');
my $staff_icon_directory = getitemtypeimagedir('intranet');
ok( -d $opac_icon_directory, "opac_icon_directory: $opac_icon_directory exists" );
ok( -d $staff_icon_directory, "staff_icon_directory: $staff_icon_directory exists" );

my $opac_icons; # hashref of filenames to sizes
sub opac_wanted {
Expand Down

0 comments on commit 599b3b5

Please sign in to comment.