summaryrefslogtreecommitdiff
path: root/modules/gallery/tests/Item_Helper_Test.php
AgeCommit message (Collapse)Author
2013-01-21Update copyright to 2013. Fixes #1953.Bharat Mediratta
2012-02-27Update copyright to 2012. #1822Bharat 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 copyright to 2011.Bharat Mediratta
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
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-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-10Change the pattern used to convert the file name to a title. Fixes ticket#1061Tim Almdal
2010-05-10Pick a new album cover when the photo that's the current cover isBharat Mediratta
deleted. Fixes ticket #1083.
2010-03-03Update the copyright to 2010. It's only 3 months into the year :-)Bharat Mediratta
2010-02-23Reset the active user to admin in all test cases where we change theBharat Mediratta
user to something else.
2010-02-09Rename item name and slug if necessary to avoid a conflict when weBharat Mediratta
move photos. Fixes ticket #957.
2010-02-09Add unit tests for item::move() in preparation for renaming when thereBharat Mediratta
are conflicts (see ticket #957)
2010-01-21Reload the album after adding the photo so that MPTT pointers are correct.Bharat Mediratta
2010-01-19Extend Gallery_Unit_Test_Case instead of Unit_Test_Case.Bharat Mediratta
2010-01-18Update for model validation. Move the url safe tests into Item_Model_Test.Bharat Mediratta
2009-11-26Convert all DB where() calls to take 3 arguments.Bharat Mediratta
Convert all open_paren() calls to and_open() or or_open() as appropriate.
2009-10-22Change the name of identity library from Identity to IdentityProvider. ↵Tim Almdal
Create a helper class called identity to simplify call the Identity Provider. Move the contents of MY_Session.php to the new helper class and remove the MY_Session class
2009-10-16Remove all non Identity API methods from Identity.php. Created an ↵Tim Almdal
MY_Session class to provide the user state changes in the session and a login.php helper that has the login form.
2009-10-16Start simplifying the interface by moving the static methods from user.php ↵Tim Almdal
and group.php. Tried creating a identity helper, but the helper identity.php was confused with the library Identity.php. So got around this by making the methods on Identity static and calling the instance within the static methods. Also temporarily moved the user.php and group.php back into the user module.
2009-09-08Update item::convert_filename_to_slug() to eliminate leading andBharat Mediratta
trailing hyphens.
2009-09-07Add item::validate_url_safe() with a test.Bharat Mediratta
2009-08-29Clean up the test and get it working.Bharat Mediratta
2009-08-29Fix for 641... extend viewable functionality to comments. Viewable unit test ↵Tim Almdal
is not working.