From 3229663c9ffd93333320faf6fa62ed6871fb1866 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 23 Mar 2010 17:09:45 -0700 Subject: [PATCH] Add tests for Event, MatrixListing and WikiPage --- t/tests/Test/WebGUI/Asset/Event.pm | 27 ++++++++++++++++++++++ t/tests/Test/WebGUI/Asset/MatrixListing.pm | 27 ++++++++++++++++++++++ t/tests/Test/WebGUI/Asset/WikiPage.pm | 27 ++++++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 t/tests/Test/WebGUI/Asset/Event.pm create mode 100644 t/tests/Test/WebGUI/Asset/MatrixListing.pm create mode 100644 t/tests/Test/WebGUI/Asset/WikiPage.pm diff --git a/t/tests/Test/WebGUI/Asset/Event.pm b/t/tests/Test/WebGUI/Asset/Event.pm new file mode 100644 index 000000000..deba5498a --- /dev/null +++ b/t/tests/Test/WebGUI/Asset/Event.pm @@ -0,0 +1,27 @@ +package Test::WebGUI::Asset::Event; +#------------------------------------------------------------------- +# 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 Event/]; +} + +sub parent_list { + return ['WebGUI::Asset::Wobject::Calendar']; +} + +1; diff --git a/t/tests/Test/WebGUI/Asset/MatrixListing.pm b/t/tests/Test/WebGUI/Asset/MatrixListing.pm new file mode 100644 index 000000000..82b776db9 --- /dev/null +++ b/t/tests/Test/WebGUI/Asset/MatrixListing.pm @@ -0,0 +1,27 @@ +package Test::WebGUI::Asset::MatrixListing; +#------------------------------------------------------------------- +# 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 MatrixListing assetAspectComments/]; +} + +sub parent_list { + return ['WebGUI::Asset::Wobject::Matrix']; +} + +1; diff --git a/t/tests/Test/WebGUI/Asset/WikiPage.pm b/t/tests/Test/WebGUI/Asset/WikiPage.pm new file mode 100644 index 000000000..6c45f17ae --- /dev/null +++ b/t/tests/Test/WebGUI/Asset/WikiPage.pm @@ -0,0 +1,27 @@ +package Test::WebGUI::Asset::WikiPage; +#------------------------------------------------------------------- +# 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 WikiPage assetAspect_Subscribable assetAspectComments/]; +} + +sub parent_list { + return ['WebGUI::Asset::Wobject::WikiMaster']; +} + +1;