Skip to content

Commit

Permalink
Tests for Image, ZipArchive
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Mar 9, 2010
1 parent ffb7945 commit b60149d
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t/run_asset.t
Expand Up @@ -19,5 +19,7 @@ use Test::Asset::Sku;
use Test::Asset::Wobject;
use Test::Asset::Template;
use Test::Asset::Redirect;
use Test::Asset::File::Image;
use Test::Asset::File::ZipArchive;

Test::Class->runtests;
30 changes: 30 additions & 0 deletions t/tests/Test/Asset/File/Image.pm
@@ -0,0 +1,30 @@
package Test::Asset::File::Image;
#-------------------------------------------------------------------
# WebGUI is Copyright 2001-2009 Plain Black Corporation.
#-------------------------------------------------------------------
# Please read the legal notices (docs/legal.txt) and the license
# (docs/license.txt) that came with this distribution before using
# this software.
#-------------------------------------------------------------------
# http://www.plainblack.com info@plainblack.com
#-------------------------------------------------------------------

use FindBin;
use lib "$FindBin::Bin/lib";

use base qw/Test::AssetBase/;
use WebGUI::Test;

use Test::More;
use Test::Deep;
use Test::Exception;

sub class {
return qw/WebGUI::Asset::File::Image/;
}

sub list_of_tables {
return [qw/assetData FileAsset ImageAsset/];
}

1;
30 changes: 30 additions & 0 deletions t/tests/Test/Asset/File/ZipArchive.pm
@@ -0,0 +1,30 @@
package Test::Asset::File::ZipArchive;
#-------------------------------------------------------------------
# WebGUI is Copyright 2001-2009 Plain Black Corporation.
#-------------------------------------------------------------------
# Please read the legal notices (docs/legal.txt) and the license
# (docs/license.txt) that came with this distribution before using
# this software.
#-------------------------------------------------------------------
# http://www.plainblack.com info@plainblack.com
#-------------------------------------------------------------------

use FindBin;
use lib "$FindBin::Bin/lib";

use base qw/Test::AssetBase/;
use WebGUI::Test;

use Test::More;
use Test::Deep;
use Test::Exception;

sub class {
return qw/WebGUI::Asset::File::ZipArchive/;
}

sub list_of_tables {
return [qw/assetData FileAsset ZipArchiveAsset/];
}

1;

0 comments on commit b60149d

Please sign in to comment.