From 7c8979c823a1bc4a908c3cb9e9f11142a843082c Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 23 Mar 2010 16:15:33 -0700 Subject: [PATCH] Tests for Post and Thread --- t/tests/Test/WebGUI/Asset/Post.pm | 28 +++++++++++++++++++++++ t/tests/Test/WebGUI/Asset/Post/Thread.pm | 29 ++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 t/tests/Test/WebGUI/Asset/Post.pm create mode 100644 t/tests/Test/WebGUI/Asset/Post/Thread.pm diff --git a/t/tests/Test/WebGUI/Asset/Post.pm b/t/tests/Test/WebGUI/Asset/Post.pm new file mode 100644 index 000000000..11934761b --- /dev/null +++ b/t/tests/Test/WebGUI/Asset/Post.pm @@ -0,0 +1,28 @@ +package Test::WebGUI::Asset::Post; +#------------------------------------------------------------------- +# 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 base qw/Test::WebGUI::Asset/; + +use Test::More; +use Test::Deep; +use Test::Exception; + + +sub list_of_tables { + return [qw/assetData Post/]; +} + +sub parent_list { + return [ map { "WebGUI::Asset::$_"} qw/Wobject::Collaboration Post::Thread/ ]; +} + +1; diff --git a/t/tests/Test/WebGUI/Asset/Post/Thread.pm b/t/tests/Test/WebGUI/Asset/Post/Thread.pm new file mode 100644 index 000000000..c0e1fb430 --- /dev/null +++ b/t/tests/Test/WebGUI/Asset/Post/Thread.pm @@ -0,0 +1,29 @@ +package Test::WebGUI::Asset::Post::Thread; +#------------------------------------------------------------------- +# 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 base qw/Test::WebGUI::Asset::Post/; + +use Test::More; +use Test::Deep; +use Test::Exception; + + +sub list_of_tables { + return [qw/assetData Post Thread/]; +} + +sub parent_list { + return [ "WebGUI::Asset::Wobject::Collaboration" ]; +} + +1; +