summaryrefslogtreecommitdiff
path: root/modules/gallery/tests
AgeCommit message (Collapse)Author
2013-01-21Add unit tests for data_rest. While I'm in there, get rid of theBharat Mediratta
clause that returns nothing when the album has no album cover - we'll fail before that if the album's thumbnail is missing, and if it's not missing then we'll have something to serve even if it's out of date.
2013-01-20Add a long overdue test for File_Proxy_Controller that tests all the variousBharat Mediratta
edge case behaviors. It doesn't cover the various headers, but it does cover the permission based code paths.
2013-01-20#1950 - Replace bogus file overwrites from item model unit test.shadlaws
- modified rename_photo_test, rename_album_test, move_album_test, move_photo_test - unit tests still test file system integrity and pass
2013-01-19Merge pull request #88 from shadlaws/fix_1941Bharat Mediratta
#1941, 1948 - Fix possible warnings in movie and graphics helpers, add functions to convert between seconds and hh:mm:ss.dd (and their unit tests).
2013-01-20Simplify get_photo_types_by_extension_test and ↵Bharat Mediratta
get_movie_types_by_extension_test.
2013-01-19Merge pull request #93 from shadlaws/fix_1944Bharat Mediratta
#1944 - Fix possible warnings in legal_file::get_photo_types_by_extension and legal_file::get_movie_types_by_extension.
2013-01-20Change the logic for finding controllers to use glob() but drop anythingBharat Mediratta
that we can find is git-ignore'd.
2013-01-19#1941, 1948 - Fix possible warnings in movie and graphics helpers, add ↵shadlaws
functions to convert between seconds and hh:mm:ss.dd. Also add unit tests for new movie helper functions.
2013-01-19#1944 - Fix possible warnings in legal_file::get_photo_types_by_extension ↵shadlaws
and legal_file::get_movie_types_by_extension. Added unit tests for these two functions, too.
2013-01-18#1943 - Make legal_file::change_extension more robust.shadlaws
Previously would fail with dots in the directory but no extension. Added unit tests to verify the new change works.
2013-01-17Update golden files.Bharat Mediratta
2013-01-17Follow-on to 94b26e506c339f50b8d094057bffc1877a79afa9 - make the new legal_fileBharat Mediratta
functions more robust when passed an unknown extension. Fixes Item_Model_Test.
2012-07-21Allow albums to have two (or more) dots in the name. Fixes #1897.Bharat Mediratta
2012-06-11Checkpoint XSS golden fileBharat Mediratta
2012-06-11Follow-on to 3caf3cc323cd25b002aa8e44d871d4677da7a029 for #1866 - harden oneBharat Mediratta
more place and update the test.
2012-05-17Smash multiple extensions down into a single one when accepting fileBharat Mediratta
uploads. Fixes #1872.
2012-05-13Follow on for #1845 - handle paths with dots in them properly.Bharat Mediratta
2012-05-05Fix extension-swapping code for files that have extensions that areBharat Mediratta
not 3 characters long. Fixes #1845.
2012-05-05Fix #1846.Bharat Mediratta
2012-04-01Exclude modules/gallery/vendor/joomla from some structure testsBharat Mediratta
2012-04-01Restrict valid urls to having a http:// or https:// prefix. Fixes #1830.Bharat Mediratta
2012-02-27Update copyright to 2012. #1822Bharat Mediratta
2012-02-27Updated for #1764 and #1790Bharat Mediratta
2011-08-08Simplification of 59b04b897b8a664cd7334b017fac8158a6281434 for #1764:Bharat Mediratta
- Breadcrumb::build_from_item becomes Breadcrumb::array_from_item_parents - Eliminate Breadcrumb::$id -- it's no longer necessary - Fold Breadcrumb::generate_show_query_strings into Breadcrumb::array_from_item_parents - Create Breadcrumb::set_first() and Breadcrumb::set_last() - Breadcrumb::build_from_list goes away, we just use arrays for this - Change Search_Controller and Tag_Controller to just create an array of Breadcrumb instances with the first/last marked appropriately - Breadcrumb_Test loses a bunch of complexity.
2011-08-07Initial commit of a patch for Ticket #1764. as discussed here: ↵Tim Almdal
https://github.com/gallery/gallery3/pull/58/files#r72949. Create a Breadcrumb library which has two static methods for_item (which takes a an item and builds the entire breadcrumb for the item) or build (which takes a variable number of Breadcrumb elements and creates a breadcrumb based on the specified elements). Used tag->url() to build the tag album url. Escaped the query string for the search. Tightened up the breadcrumb code in page.html.php. When adding the show query parameter, we can't blindly concatenate using the ? separator. We have to check that we use a & if a query parameter already exists.
2011-07-24Update golden file.Bharat Mediratta
2011-07-21Polishing the rawphoto changes, including adding some tests.Chad Parry
Squashed commit of the following: commit 945316a8c220b12adb687c896bcc5e86f99f46a4 Author: Chad Parry <github@chad.parry.org> Date: Thu Jul 21 01:11:13 2011 -0600 Add a test for the sunny-day scenario where a rule changes a data file's MIME type. commit 4ee1ee000c8f4d8ebaae66f637bc71080486fd73 Author: Chad Parry <github@chad.parry.org> Date: Thu Jul 21 00:49:47 2011 -0600 Ensure that a third-party cannot swap out a legitimate photo with an unsafe file type. commit 7dd0105bfc59c150e5640e693778f51bbaa44eab Author: Chad Parry <github@chad.parry.org> Date: Thu Jul 21 00:48:19 2011 -0600 Update the MIME type and other meta-data when a new data file is provided. commit 5a8844c7947b21cf658f22cc61f20ffa9e8f07f2 Author: Chad Parry <github@chad.parry.org> Date: Thu Jul 21 00:30:01 2011 -0600 Remove a unit test that no longer applies. Replacement data files are allowed to have different MIME types. commit 0de9c6283ce4f5773cad8e92b6785d6a1f7b5e46 Author: Chad Parry <github@chad.parry.org> Date: Thu Jul 21 00:27:45 2011 -0600 If one rule fails, then abort processing, rather than trying to proceed to subsequent rules. commit 41d379c2b777ae7b3a11f528971228e234f8976f Author: Chad Parry <github@chad.parry.org> Date: Thu Jul 21 00:10:10 2011 -0600 Replace an overly-complicated regular expression with a simple in_array, at Bharat's suggestion. commit 1b3f7111d4c2607baaa2da0aab3b501f2d9a1426 Merge: 8f7904a 403f64b Author: Chad Parry <github@chad.parry.org> Date: Wed Jul 20 21:02:56 2011 -0600 Merge branch 'master' into rawphoto commit 8f7904ab62c71a7e4ee68762f936030b4dcb4ea1 Merge: e950573 771de0a Author: Chad Parry <github@chad.parry.org> Date: Sat Jun 25 14:12:39 2011 -0600 Merge branches 'master' and 'rawphoto' into rawphoto commit e95057337996351e49915d9f85d007d50103a4be Author: Chad Parry <github@chad.parry.org> Date: Wed Jun 15 20:24:18 2011 -0600 Merge branches 'rawphoto-squash' and 'rawphoto' into rawphoto
2011-05-24CheckpointBharat Mediratta
2011-05-24Reassign the copyright to the standard custodian (Bharat). #1732.Bharat Mediratta
2011-05-04Simplified the temp_filename implementation and removed the mocks.Chad Parry
2011-04-30Change the signature of system::tempnam to something more appropriate for ↵Chad Parry
Gallery.
2011-04-30Create a tempnam substitute that safely creates files with a given extension.Chad Parry
2011-04-25Move random::string() to be test::random_string() and have it return aBharat Mediratta
random string of any length. Also introduce test::lorem_ipsum() and use that in places where we want strings of words. Fixes #1713.
2011-04-25Update test golden files.Bharat Mediratta
2011-04-23Add convert_to_human_readable and tests for both. Resolves #1693.Bharat Mediratta
2011-04-22Do simple transliteration when converting filenames to slugs, but checkBharat Mediratta
to see if the transliteration module is available and use a more complex transliteration if possible. Fixes #1668.
2011-01-21Update XSS golden fileBharat Mediratta
2011-01-21Update copyright to 2011.Bharat Mediratta
2011-01-15Golden file updates for xss and controller authentication.Bharat Mediratta
2011-01-15Revive the code from Cache_Driver::exists and put it into a helperBharat Mediratta
function in the test so that we can keep our tests functioning. Follow on to 66fd8c7518ab71466aca72d20fb7bcd5f374af26 for #1559.
2010-12-28Use db::expr instead of "new Database_Expression". Resolves #1560.Bharat Mediratta
2010-12-28Update test to match change in Item_Model::as_restful_array made inBharat Mediratta
7e31f97b4cbc5cf1894611de1e9de7a3efc6ad50 for #1536.
2010-12-28Update golden file to reflect the change inBharat Mediratta
c989981041e66e336f1410b651173305ab184aba for #1520.
2010-12-21Implement item::find_by_relative_url with tests.Bharat Mediratta
2010-12-21Change item::find_by_path() to check the relative_path_cache first,Bharat Mediratta
and only fall back the name/level comparison if there's no cached entry. Update tests accordingly.
2010-12-21Return an empty Item_Model when item::find_by_path failsBharat Mediratta
2010-12-21Tighten up item::find_by_path slightly. Augment the tests to coverBharat Mediratta
special characters in the file name ("+" is an edge case differentiator between rawurlencode and urlencode).
2010-12-21Fix assertion order to be (expected,actual)Bharat Mediratta
Change strinct concatenation to be variable interpolation to tighten it up.
2010-12-22Minor changes to satisfy the G3 code standards.Kriss Andsten
2010-12-22Packaging + tests of Bharat's find_by_path routine.Kriss Andsten