Commit graph

51 commits

Author SHA1 Message Date
Graham Knop
ed04b99872 remove WebGUI::Utility 2010-09-07 13:18:49 -05:00
Scott Walters
8fd164143a Remove some of the debugging cruft. 2010-08-25 09:19:29 -04:00
Scott Walters
ddf9b7e13b A Story should have a Wobject::Folder for a direct parent with StoryArchive above that. Otherwise the Story can't render itself. 2010-08-25 09:08:30 -04:00
Graham Knop
2c2bd55675 remove grepping hash keys for single value 2010-08-20 13:17:46 -05:00
Scott Walters
acd71a7f7e More exceptions for the Test::Class tests as to which labels should and don't need to appear in forms. 2010-08-19 12:38:28 -04:00
Scott Walters
f2d411cf1f Account for additional form fields added at run-time in the tests. 2010-08-19 12:38:27 -04:00
Scott Walters
cf2a6fb4a3 Account for additional form fields added at run-time in the tests. 2010-08-19 12:38:27 -04:00
Scott Walters
3500b6afc7 Account for additional form fields added at run-time in the tests. 2010-08-18 15:09:05 -04:00
Scott Walters
9287b818bf Account for additional form fields added at run-time in the tests. 2010-08-18 15:03:46 -04:00
Scott Walters
c54868e21e Give the tests for WebGUI::Asset::File::GalleryFile::Photo a storage location with a jpg in it so it can do its naughty business. 2010-08-18 14:48:31 -04:00
Scott Walters
2d1dcf202a Default postProcessMergedProperties in case our child class doesn't have one. Oops. 2010-08-11 23:52:31 -04:00
Scott Walters
773fadcffc Pass empty JSON for icalFeeds field in Calendar until I can get good sample data; makes Calendar Test::Asset tests pass. 2010-08-11 23:24:28 -04:00
Scott Walters
5d50866461 Add support for additional, required per-package constructor args.
Give better diagnostics on which properties don't appear in forms and vice versa so I can hopefully figure out the rhyme and reason to those that don't match.
When an edit form takes attachmentsJson, stick some in there so it doesn't get upset and to give it a workout.
2010-08-11 19:36:48 -04:00
Scott Walters
48f239a178 Requires extra arguments to Asset constructor; list them in the package so Test::Asset can query and use them. 2010-08-11 19:29:17 -04:00
Scott Walters
7eda8f7d46 Numerous corrections to tests.
Currently, "Looks like you failed 62 tests of 3882".
Many transient, non-deterministic failures lurk and specific asset types need special cases added in test subclasses.
2010-08-10 11:24:39 -04:00
Doug Bell
3934a6704c fix getEditForm 2010-07-15 11:55:25 -05:00
Doug Bell
1caef590cc fix navigation edit form 2010-07-15 11:55:25 -05:00
Doug Bell
eec0780893 more test work 2010-07-15 11:55:24 -05:00
Doug Bell
e891410075 tests and such 2010-07-15 11:55:24 -05:00
Doug Bell
ea1a020ab5 fixes to content wizard 2010-07-15 11:52:04 -05:00
Colin Kuskie
55ec1788ed Test fixes for cross repo-mixup. 2010-06-26 13:07:53 -07:00
Colin Kuskie
5febc0ebbc Merge commit '41575d24bb' into webgui8. Some tests still failing.
Conflicts:
	docs/gotcha.txt
	lib/WebGUI.pm
	lib/WebGUI/Asset.pm
	lib/WebGUI/Asset/File/GalleryFile/Photo.pm
	lib/WebGUI/Asset/Post.pm
	lib/WebGUI/Asset/Template.pm
	lib/WebGUI/Asset/WikiPage.pm
	lib/WebGUI/Asset/Wobject/WikiMaster.pm
	lib/WebGUI/Cache.pm
	lib/WebGUI/Content/Setup.pm
	lib/WebGUI/Role/Asset/Subscribable.pm
	lib/WebGUI/Shop/Cart.pm
	lib/WebGUI/Shop/Pay.pm
	lib/WebGUI/Shop/PayDriver/ITransact.pm
	sbin/testEnvironment.pl
	t/Asset/WikiPage.t
	t/Shop/PayDriver.t
	t/Shop/PayDriver/ITransact.t
	t/Shop/PayDriver/Ogone.t
	t/Shop/TaxDriver/EU.t
	t/Shop/TaxDriver/Generic.t
	t/Workflow/Activity/RemoveOldCarts.t
	t/lib/WebGUI/Test.pm
2010-06-25 23:25:26 -07:00
Colin Kuskie
0ae4882906 Give tests prefixes so they run in a predictable order. 2010-05-27 20:54:14 -07:00
Colin Kuskie
963690641e Remove tests that only test Asset.pm, and not all Asset sub-classes. 2010-04-19 16:16:49 -07:00
Colin Kuskie
e8d196c020 Produced assets should be refreshed from the db. 2010-04-11 20:35:20 -07:00
Colin Kuskie
2d4d95a01e Add 1 basic test for canPaste. 2010-04-11 20:24:23 -07:00
Colin Kuskie
a79f81346a Add tests for paste. Be sure to setup session->asset for canPaste tests. 2010-04-09 15:22:07 -07:00
Colin Kuskie
69904f66da Tests for cut. Total of 3081 tests so far. 2010-04-09 12:04:47 -07:00
Colin Kuskie
f36a30f2b9 Refactor out code to build an asset with a real parent. Add purge tests. 2010-04-09 11:46:36 -07:00
Colin Kuskie
45b6f45e4b Add tests for Article->getStorageLocation, call addToCleanup by classname. 2010-04-06 19:27:38 -07:00
Colin Kuskie
743e57c8ae Add a test for the Story asset. 2010-03-24 18:26:29 -07:00
Colin Kuskie
237eaa9990 Add a version tag so we work on a committed parent. 2010-03-24 17:02:05 -07:00
Colin Kuskie
82bc730a8a Remove another bad file. 2010-03-24 10:02:12 -07:00
Colin Kuskie
2a7f64c4ab Removing bad file. 2010-03-24 10:01:30 -07:00
Colin Kuskie
3229663c9f Add tests for Event, MatrixListing and WikiPage 2010-03-23 17:09:45 -07:00
Colin Kuskie
7c8979c823 Tests for Post and Thread 2010-03-23 16:15:33 -07:00
Colin Kuskie
e004eab9f5 New infrastructure for building the parents that an asset requires. 2010-03-23 16:15:09 -07:00
Colin Kuskie
d966711f00 List of parents for Gallery File, also inheritance fixes. 2010-03-23 16:07:22 -07:00
Colin Kuskie
5ad0dc21c3 Fix module line broken by previous commit and injudicious perl -pi 2010-03-23 16:06:55 -07:00
Colin Kuskie
9dc2977f95 Use correct inheritance for test modules. 2010-03-23 16:02:57 -07:00
Colin Kuskie
cbfe3825a8 Fixes for creating parents for testing. 2010-03-23 15:58:40 -07:00
Colin Kuskie
22bbf2e23c Check the Asset, not the class, and make sure it is loaded. 2010-03-23 11:54:19 -07:00
Colin Kuskie
454ac13a4b Remove debug code. 2010-03-22 16:50:26 -07:00
Colin Kuskie
a874b0201e Add a test to make sure every property has a table defined in it. If you need an attribute without a table, use has. 2010-03-19 14:48:55 -07:00
Colin Kuskie
b04651ecc8 No comments table in the WikiMaster. 2010-03-19 14:33:51 -07:00
Colin Kuskie
3a2f94f1b3 Test for some Sku's. 2010-03-13 20:27:20 -08:00
Colin Kuskie
d4eae41ba8 Add a test for Photo 2010-03-13 20:23:12 -08:00
Colin Kuskie
41fffbaf37 Remove FindBin from test class sub-modules. 2010-03-13 20:06:15 -08:00
Colin Kuskie
20507ee883 Calculate class to load. Remove class method from each test file. Fix typos. 2010-03-13 19:17:13 -08:00
Colin Kuskie
f7589e6237 Refactoring to remove putting className into each test class. WIP. 2010-03-12 10:30:29 -08:00