Commit graph

103 commits

Author SHA1 Message Date
Colin Kuskie
004b8095a1 Add method to clean up test sessions. This has to be done
after ALL other types of objects have been cleaned up.
More test clean-up for users, groups and sessions.
2009-05-01 02:02:12 +00:00
Colin Kuskie
c8fe4092a2 Many more RssAspect tests. 2009-04-25 00:16:27 +00:00
Colin Kuskie
6e574a9e6b RssFeed aspect tests, more to follow. 2009-04-24 22:08:25 +00:00
Colin Kuskie
1b8ad91605 Add in StoryManager, 3 assets for managing news content in WebGUI.
Several small API changes to Keyword and AssetExportHtml to support StoryManager functionality.
2009-04-24 18:31:06 +00:00
Colin Kuskie
19f703dc9b Merge with HEAD, 10472 2009-04-24 17:12:17 +00:00
Colin Kuskie
6137a06bb9 Handle automatically cleaning up users at the end of a test. 2009-04-24 03:40:16 +00:00
Colin Kuskie
decde00451 Forward port auto storage deletion code for WebGUI::Test. 2009-04-13 17:36:23 +00:00
Colin Kuskie
314a12def2 Add an autoclean-up method to WebGUI::Test, and convert the Story test
to use it.
2009-04-13 17:33:42 +00:00
Colin Kuskie
1edaca4ed2 Merge up to 10305 2009-04-13 17:04:23 +00:00
Colin Kuskie
ddd06c2ede Provide a way for WebGUI::Test to register groups to clean up at
the end of a test.
Convert several tests to use that, including Post.t, which leaked Groups.
2009-04-13 02:45:03 +00:00
Colin Kuskie
75ad1c14ff Only clone the data from Setting. This prevents trying to close the
session dbh twice and getting odd warning messages.
2009-04-10 16:27:31 +00:00
Colin Kuskie
4c1307e3d0 merge to 10219 2009-04-08 16:35:31 +00:00
Colin Kuskie
4e78593395 Change tests to use the automatic backup of Settings in END blocks. 2009-03-30 20:41:02 +00:00
Colin Kuskie
4e2a8bab91 Bump up the version for Clone, since the new version works with
perl 5.10.
Have SurveyJSON use it instead of dclone.
2009-03-30 19:47:27 +00:00
Colin Kuskie
b61ef2c91f Provide a way for config file settings to be restored at the end of a test,
via the END block in WebGUI::Test.
2009-03-28 03:53:26 +00:00
Colin Kuskie
cab6c18372 remove Test::Class based tests that fail under 5.10 on various operating
systems.
2009-03-26 21:42:26 +00:00
Colin Kuskie
e71a119faa Add stub tests for Account::Inbox with custom canView tests. 2009-03-26 05:38:09 +00:00
Colin Kuskie
66c8b069e1 Add stub tests for Account::User, with custom canView tests. 2009-03-26 05:33:51 +00:00
Colin Kuskie
24e0be8087 Add a stub test for Contributions. 2009-03-26 05:25:53 +00:00
Colin Kuskie
ea7fe2650b More tests for getUrl. Beginning of tests for canView. 2009-03-26 05:14:31 +00:00
Colin Kuskie
140e0e0a8a Rewrite the Account.t test as a Test::Class test.
Create a driver script for it.
Add a subclasses Account::Friends test.
2009-03-25 22:49:59 +00:00
Colin Kuskie
4cb5b5d83c Add an easy way to access a famous date. 2009-03-19 04:06:14 +00:00
Colin Kuskie
444ff307e0 And another one. 2009-02-27 19:23:18 +00:00
Graham Knop
e596489f10 adjust template i18n test to use the real macro parser 2009-02-21 22:17:24 +00:00
Graham Knop
24da723629 updating copyright year 2009-02-20 23:47:30 +00:00
Colin Kuskie
c90fa56507 Make WebGUI::PseudoRequest work with fatals. Cookies are now mocked and
tied off inside that package.  ErrorHandler uses the session request object,
instead of RequestUtil.
2009-02-18 02:46:59 +00:00
Colin Kuskie
7f2bc2458c Handle the case where someone is doing double quoted variable interpolation
in the label part of an i18n fetch.
2009-01-27 20:33:55 +00:00
Colin Kuskie
0302e7b96e WebGUI Perl::Critic policy. Handle the case when the namespace is
variable instead of a literal.
2009-01-27 20:19:39 +00:00
Graham Knop
d6e00cab05 improved performance of file uploads and changed format of created uploads locations, avoiding case sensitivity problems 2008-11-12 01:17:33 +00:00
Graham Knop
336cb209fd protect against premature test failure corrupting config, remove debug code 2008-09-30 17:07:26 +00:00
Colin Kuskie
7043f5d711 help the test track changes to Config.pm and how it handles paths 2008-09-30 16:11:11 +00:00
Graham Knop
4f0663f199 allow undef to return from macros, fix empty string returns, test a few more cases 2008-09-16 21:34:48 +00:00
Graham Knop
f0e6a30d75 rewrite macro parser, improving speed and making parameter parsing more sane 2008-09-16 02:09:37 +00:00
Colin Kuskie
afff4c4844 Back port Haarg's excellent fix for the lack
of query checking in the ErrorHandler test.
2008-09-11 23:16:19 +00:00
Colin Kuskie
5fc629993a when overriding Log::Log4perl for testing, set the is_debug flag to true 2008-08-21 23:45:00 +00:00
Graham Knop
f082e2d14e request->body and request->param should be the same in tests 2008-08-07 22:55:35 +00:00
Colin Kuskie
9942f9e70d remove debug code from the Perl::Critic label scanner 2008-07-28 03:23:20 +00:00
Colin Kuskie
33bcab206e remove TODO item for calculated keys 2008-07-23 17:03:52 +00:00
Colin Kuskie
8558e5a86f Handle the case when the i18n key is calculated, rather than
being a string.
2008-07-23 17:02:54 +00:00
Colin Kuskie
5e97a877d5 Make the WEBGUI_CONFIG environment variable warning messages more instructive. 2008-07-18 17:28:41 +00:00
Graham Knop
11dfcd6277 fix throws_deeply test exporting 2008-06-20 08:57:29 +00:00
Colin Kuskie
307c1e0e68 document work to be done in POD for the Perl::Critic policy 2008-06-13 05:04:05 +00:00
Colin Kuskie
55237e3e82 fix the label test to handle not explicit i18n namespace in new 2008-06-13 00:05:05 +00:00
Colin Kuskie
9a9e94a0de replace the old, buggy label.t with the new, slow critic_labels.t. Add Perl::Critic and Test::Perl::Critic as optional requirements to sbin/testEnvironment.pl 2008-06-04 20:09:00 +00:00
Colin Kuskie
1d4810f6b5 migrate some tests from errorHandler to log 2008-05-30 07:03:05 +00:00
JT Smith
5fb4807edc merging commerce branch back into head 2008-04-20 18:08:26 +00:00
Colin Kuskie
f555408b95 add POD to PseudoRequest. Also, refactor initializing the cached print values 2008-04-10 23:31:12 +00:00
Graham Knop
d2116bf797 fixing tests for new output method 2008-04-10 22:15:15 +00:00
Martin Kamerbeek
1658f3957d Added WebGUI::TestException and convert Shop/Pay.t to use it. 2008-03-11 22:07:21 +00:00
Colin Kuskie
06f52bae9a Fix how logging gets intercepted. It used to be on by default, now it must be turned on. 2008-02-29 22:09:32 +00:00