Doug Bell
4c70aa4c71
re-integrated photogallery branch
2007-12-18 13:05:41 +00:00
Doug Bell
5222ad6be1
merged with SVN HEAD
2007-12-18 12:22:37 +00:00
Doug Bell
82e9bf8448
Finished? Ready for merge at least.
2007-12-17 22:22:06 +00:00
Colin Kuskie
58dd3e075a
Add fixUrl tests for duplicate assets and generated urls.
2007-12-17 03:10:54 +00:00
Colin Kuskie
8e52096a0a
Re-indent some fixUrl code and realign comments.
...
Add more fixUrl tests for coverage. Leading zeroes are
handled strangely.
2007-12-16 22:59:00 +00:00
Colin Kuskie
de912cf977
testing a different special state
2007-12-16 22:00:36 +00:00
JT Smith
1ce61982ed
some bug fixing
...
added some tests
2007-12-16 18:56:36 +00:00
Colin Kuskie
b70ef9d23a
Add tests to cover the removal of extensions in the "directory"
...
parts of the path. Refactor out the while loop with match and
nested s/// into a single regexp.
2007-12-16 04:13:53 +00:00
Colin Kuskie
2de8dbfc9e
remove test for passthruUrls, since they are now handled by pluggable ops
2007-12-16 00:25:00 +00:00
Colin Kuskie
c5c24852ca
skipping wrong number of tests
2007-12-13 17:54:26 +00:00
Doug Bell
ac1a7dc3a3
fix: CS posts get re-ordered when copy/paste
2007-12-13 17:26:28 +00:00
Colin Kuskie
33ba29b338
add support for writing URL extension tests later
2007-12-13 00:29:25 +00:00
Colin Kuskie
afcc90b130
Documented a regexp in Session/Url.pm
...
Add passthruUrls to the list of URLs that are changed by fixUrl.
Wrote a bunch of POD for fixUrl
Changed the regular expressions related to badUrl so they don't need to copy the data. This
will speed them up.
Fixed a bug where trailing slashes would defeat the badUrl check.
Re-indented according to WGBP.
Added tests to cover all of the changes.
2007-12-11 22:51:31 +00:00
Colin Kuskie
ac6651cdcd
forward porting fixUrl bugfix and test
2007-12-11 16:40:05 +00:00
Colin Kuskie
a8eb245f2c
Remove debugging code.
...
Only process ->get method calls for existing i18n objects.
Handle the default namespace setup in ->new
Add POD code on how to run this from the command line.
Basically, it's done but needs to be run against more code
to handle variable based i18n calls (which need to be ignored)
and nested scope object creation.
2007-12-06 22:38:33 +00:00
Colin Kuskie
75041656ee
adding more debug statements to Storage/Image.t
2007-12-04 21:31:30 +00:00
Colin Kuskie
72906e27fb
fixing handling of http:// calls in the Extras URL
2007-12-04 21:25:32 +00:00
Colin Kuskie
21658d2ffd
Remove debugging code.
...
Add in code to actually check the label in the requested namespace.
Now the problem becomes how to get all the right paths to
the right modules.
2007-12-03 05:47:35 +00:00
Colin Kuskie
ad661f2a70
Rewrite the adjustMaxFilesize test to be data driven.
...
Check the original sizes, and resized sizes exactly.
Hoping that this fixes last night's Image.t test failure.
2007-12-02 04:01:07 +00:00
Colin Kuskie
225590fa33
Add tests for the tempspace node.
2007-12-01 05:24:30 +00:00
Colin Kuskie
1c02551bd6
Perl::Critic module for checking illegal i18n labels
2007-12-01 04:48:55 +00:00
Colin Kuskie
d40ea62894
avoid running this test unless we have WRE installed
2007-12-01 00:12:10 +00:00
Colin Kuskie
241bb7ebac
Storage/Image.t tests failing due to being run as root user. Add SKIP to enable test for non-users only
2007-11-30 16:26:22 +00:00
Colin Kuskie
350d698441
forward porting another batch of Event getTemplateVar tests
2007-11-28 05:45:11 +00:00
Colin Kuskie
0a1974ba4c
forward porting Event dateSpan display fix and Event.t test
2007-11-28 04:47:30 +00:00
Colin Kuskie
92c3652406
Adding previously forgotten testing collateral
2007-11-28 04:35:01 +00:00
Colin Kuskie
8b84ae3e76
Up coverage of addGroups to 100%.
...
Change tabs to spaces in group diagrams.
Optimize the addGroups membership check so the expensive getGroupsIn
doesn't have to take place.
Add a label to the foreach.
2007-11-26 05:13:32 +00:00
Colin Kuskie
1b3d7f0c2b
Refactor out the copied code to resize images based on the max file
...
size from the Admin Settings and create a new method in
Storage::Image.
Build a test to verify that it works correctly.
2007-11-24 05:30:15 +00:00
Colin Kuskie
41a8524daf
remove mocking, since we new use PseudoRequest
2007-11-22 20:52:26 +00:00
Colin Kuskie
256b52a0d7
Final state and status fixes.
...
In these three files, any check for status=archived was removed, since
in each case it is possible that the Asset may want to be viewable
when it is archived, like Files, Posts, etc.
Updated Session/Url.t to remove tests for status=archived.
2007-11-22 18:46:17 +00:00
Graham Knop
865c1d315b
merging 7.4 changes
2007-11-22 06:09:27 +00:00
Colin Kuskie
afb67294b8
more coverage tests for getDescendantCount, checking state and status
2007-11-21 18:04:41 +00:00
Colin Kuskie
185a582ef9
State and status fix for AssetLineage->getDescendantCount, and tests to
...
double check it.
2007-11-21 03:43:20 +00:00
Colin Kuskie
80333b1141
add more tests to cover AssetLineage->getChildCount. Optimize the new SQL query in getChildCount
2007-11-20 21:15:06 +00:00
Colin Kuskie
0799d70428
Fix for AssetLineage's getChildCount. It did not consider the
...
asset's status, only the state. Change the SQL query to always
look at status, and consider state based on the options passed
to the method.
Add two quick tests to test that. More to follow.
2007-11-20 04:46:45 +00:00
Colin Kuskie
d0624b7cf9
no sense looking in the Help and i18n for POD
2007-11-19 04:52:42 +00:00
Colin Kuskie
d566d0db8c
add a test for makeArrayTabSafe and add comments to WebGUI::Utility
2007-11-16 05:16:44 +00:00
Colin Kuskie
b07956fa06
forward port of branch work with Utility.pm and isInSubnet
2007-11-16 04:36:08 +00:00
Colin Kuskie
fd8cff2b8f
coverage tests for getFileIconUrl for WebGUI::Storage.pm
2007-11-12 20:58:21 +00:00
Colin Kuskie
484bc40569
leave notes as to future tests that need to be written for getBackToSiteURL
2007-11-12 05:20:52 +00:00
Colin Kuskie
dac78e161c
Coverage tests for getBackToSiteURL brings Session/Url coverage
...
up to 100%.
2007-11-12 05:18:05 +00:00
Colin Kuskie
1cf78f5321
Finish up the file upload handling by PseudoRequest. If you
...
call $pseudoRequest->uploadFiles with a list of filenames, it will populate
the upload method with upload objects, so that Storage->getFileFromFormPost
will have an object with all the right methods.
t/Storage.t tests this incidently. It occurs to me that we need tests
for our PseudoRequest module, and it needs POD, and it should probably
be rewritten using Class::InsideOut for good form.
2007-11-10 00:47:17 +00:00
Colin Kuskie
4de53b2de9
enable testing of $session->request->uploads through WebGUI::PseudoRequest. Now we need a good utility method for sending a list of files to a sub and having it return a list of filehandles to those files
2007-11-10 00:02:44 +00:00
Colin Kuskie
175304e915
always, always cleanup after myself in tests. sigh.
2007-11-09 22:43:19 +00:00
Colin Kuskie
57ff4405a6
add a prototype fix for not having InnoDB tables causing test errors
2007-11-09 22:35:58 +00:00
Colin Kuskie
f3b7b1bf8e
Start adding coverage to the getBackToSiteURL method.
...
Remove the old commented out MockObject request code. It's PseudoRequest or bust.
WGBP indent some of the Session/Url methods.
2007-11-09 21:23:00 +00:00
Colin Kuskie
0c2f9f5ec7
fix bad import of help template variables. Loops are now handled correctly. Added a test with supporting collateral to make sure this does not happen again
2007-11-08 05:34:48 +00:00
Chris Nehren
9db0430032
Fix the groupToEditPost field defaulting to the groupIdEdit field. Make sure
...
that the added collab system in the test has a parent asset as well, to ensure
that the inheritance works properly.
2007-11-07 22:29:21 +00:00
Chris Nehren
e20e6061f2
Don't delete the groups used in the Post test, they're needed. May want to make
...
mock groups in the future. Also clean up some commented out things from
Collaboration.t.
2007-11-06 23:06:09 +00:00
Chris Nehren
0d689afa4c
Add the groupToEditPost field to the Collaboration system. This allows users
...
to specify a group of users that will always be able to do edits on posts,
regardless of whether they own those posts and independent of the editTimeout
field.
2007-11-06 22:58:22 +00:00