summaryrefslogtreecommitdiff
path: root/modules/gallery/tests
AgeCommit message (Collapse)Author
2010-12-15Consolidate all the random code into a random helper that offers:Bharat Mediratta
random::hash() random::string() random::percent() random::int() So that we don't have lots of different ways to get random values all over the code. Follow-on to #1527.
2010-12-15Use mt_rand() instead of rand() since it provides better portability.Bharat Mediratta
Fixes #1527.
2010-12-15Follow on to d2be26e407aeb620082bcad2d5a45272868b38a1 to update theBharat Mediratta
unit tests to reflect the proper type filtering for #1503.
2010-12-15Clean up golden file as a follow-on toBharat Mediratta
3c523bcac6e902973c5891c02842254eaecd33a4 for #1499.
2010-12-15Clean up xss golden file as a follow-on toBharat Mediratta
945e79b17182f7c96eb4b566bd41d26b5f8c4288 for #1478.
2010-12-14Move photo/movie file extension validation into the model. Fixes #1524.Bharat Mediratta
2010-11-20I don't run these, I doubt anybody does. DeletingBharat Mediratta
2010-11-09Tie the image cachebuster to the file mtime instead ofBharat Mediratta
Item_Model::$updated since we want the url to be stable whenever possible. Fixes #1482.
2010-11-08Implement module::clear_all_vars($module_name)Bharat Mediratta
Also switch from using ORM to Database_Builder for the SQL because it's cleaner, and clean up the test. Fixes #1479.
2010-10-04Not sure why digibug::close_window() changed in the listing, but it looks ↵Bharat Mediratta
fine here.
2010-09-18The Kohana folks removed the cache cleanup code back inBharat Mediratta
http://dev.kohanaframework.org/projects/kohana2/repository/revisions/4605 So now our cache entries don't expire. For now, do cache expiration whenever we render Admin > Maintenance, since that's the type of place that users will go when they want their cache to expire anyway.
2010-09-17Checkpoint.Bharat Mediratta
2010-09-13When moving a single item, just copy its permissions from its parentBharat Mediratta
album. This is totally legal since an items permissions must be the same as its parent's, and it's much faster for large installs where a complete recalculation can be very costly. Should fix #1360.
2010-09-11Uniqify the name and slug when we move an item to a new location withBharat Mediratta
a conflict. This fixes #1364.
2010-09-11Verified.Bharat Mediratta
2010-09-11upgrader/index does not require CSRFBharat Mediratta
2010-09-07Updated for b6fa33faf789749f4de3f4eadf8832748372c980Bharat Mediratta
2010-09-06Verified checkpoint.Bharat Mediratta
2010-09-01Fix up the test so it works with the changes for ticket #1216. Also note the ↵Tim Almdal
name change to the first test. Form a php reflection point of view Sendmail_Test (class name) == sendmail_test (method name) so the method gets treated as a constructor instead of a test method.
2010-08-31Patch for ticket #1216. Move the values that were in the sendmail config ↵Tim Almdal
file and store them as gallery module variables. Requires a version number bump to 37.
2010-08-24Delete old SWFupload code. We replaced it with uploadify ages ago.Bharat Mediratta
2010-08-15We use UTF-8 everywhere. Fixes ticket #1285.Bharat Mediratta
2010-08-15Verified.Bharat Mediratta
2010-08-08Use the gallery helper date/time functions wherever we format dateBharat Mediratta
time for the browser. Fixes ticket #1278.
2010-08-08Verified.Bharat Mediratta
2010-08-08Verified.Bharat Mediratta
2010-08-08Add the $max_level param to all calls to _sanitize_for_dump()Bharat Mediratta
2010-08-07Add the ability to replace the source data file in Item_Model::save().Bharat Mediratta
Refactor the rotate code in Quick_Controller to replace the data file, and then have gallery_event::item_updated_data_file() pick up after the change is saved, rebuild the image and handle album covers. This is much more portable than before and it will allow any mechanism (eg: REST) to replace the source image.
2010-07-27VerifiedBharat Mediratta
2010-07-27UpdatedBharat Mediratta
2010-07-06Fix for ticket #1181. Use $.getJSON to retrieve the json contents of the ↵Tim Almdal
dialog. Convert all the controllers that create the data to go into a dialog to return the html as part of a json object.
2010-07-06Update the xss golden fileTim Almdal
2010-07-06Correct the controller auth golden file from when the simple_uploader was ↵Tim Almdal
renamed to flash_uploader
2010-07-03When we delete an item, make sure that we scrub it from any otherBharat Mediratta
items that may have it in the album_cover_item_id column. Fixes ticket #1172.
2010-06-20Updated golden files.Bharat Mediratta
2010-06-20Add "comments" relationship support.Bharat Mediratta
2010-06-20Assert how many files we analyze so that we can tell if we're suddenlyBharat Mediratta
analzying too many or too few.
2010-06-20Exclude the .git directory.Bharat Mediratta
2010-06-20Add "json" as a valid view suffix.Bharat Mediratta
2010-06-19Updated for comment REST relationships.Bharat Mediratta
2010-06-17Update the xss gold file with changes to views in the last couple of commits.Tim Almdal
2010-06-15Revert "Add a "convert_ids" parameter to Item_Model::as_restful_array(), which"Bharat Mediratta
This reverts commit 98fce83de5f772482382bfabdbcd94c25ecdbb1a. Conflicts: modules/gallery/tests/Item_Model_Test.php
2010-06-10Change the pattern used to convert the file name to a title. Fixes ticket#1061Tim Almdal
2010-06-09Update golden fileBharat Mediratta
2010-06-09In GalleryCodeFilterIterator::accept(), ignore . and .., and stop caring ↵Bharat Mediratta
about .svn
2010-06-09Fix get_ancestor_test() since the parameter was renamed to ancestors_for.Bharat Mediratta
2010-06-09Revert the "preserve_ids" global query parameter. We decided that it was aBharat Mediratta
bad idea. This reverts commit 6425d41eddd44091b2d83ba3c3734cc6990ca581.
2010-06-08Add a "can_edit" field to the Item_Model's REST output. It'sBharat Mediratta
applicable to the current user.
2010-06-07Add a "preserve_ids" global query parameter for REST requests thatBharat Mediratta
indicates that we shouldn't opportunistically convert ids into REST urls.
2010-06-07Add a "convert_ids" parameter to Item_Model::as_restful_array(), whichBharat Mediratta
we can turn on with a query parameter.