From b60149d01b95b5860e107e6942da68fe79227d9b Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 9 Mar 2010 13:52:07 -0800 Subject: [PATCH] Tests for Image, ZipArchive --- t/run_asset.t | 2 ++ t/tests/Test/Asset/File/Image.pm | 30 +++++++++++++++++++++++++++ t/tests/Test/Asset/File/ZipArchive.pm | 30 +++++++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 t/tests/Test/Asset/File/Image.pm create mode 100644 t/tests/Test/Asset/File/ZipArchive.pm diff --git a/t/run_asset.t b/t/run_asset.t index 4f0a07cfa..064eb5141 100644 --- a/t/run_asset.t +++ b/t/run_asset.t @@ -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; diff --git a/t/tests/Test/Asset/File/Image.pm b/t/tests/Test/Asset/File/Image.pm new file mode 100644 index 000000000..a63568542 --- /dev/null +++ b/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; diff --git a/t/tests/Test/Asset/File/ZipArchive.pm b/t/tests/Test/Asset/File/ZipArchive.pm new file mode 100644 index 000000000..679b0cf6a --- /dev/null +++ b/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;