summaryrefslogtreecommitdiff
path: root/modules/gallery_unit_test/helpers
AgeCommit message (Collapse)Author
2013-01-24#1955 - Make unit test photos unique.shadlaws
- Added test::random_unique_photo and test::random_unique_photo_unsaved to uniquify test photos. - Uniquified the black dot of test.jpg by coloring it with the six-digit hex code already used to name the random photos (e.g. "name_a48801.jpg"). - Modified four tests in Item_Model_Test that check photo file contents to use new functions to guarantee uniqueness.
2013-01-21Update copyright to 2013. Fixes #1953.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-02-27Update copyright to 2012. #1822Bharat Mediratta
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-01-21Update copyright to 2011.Bharat Mediratta
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-03-03Update the copyright to 2010. It's only 3 months into the year :-)Bharat Mediratta
2010-02-09Move diff::compare to be test::diffBharat Mediratta
2010-01-22Reload items after saving so that we convert their members to strings.Bharat Mediratta
2010-01-21Add random_group().Bharat Mediratta
2010-01-20improve comment.Bharat Mediratta
2010-01-20Add random_tag().Bharat Mediratta
2010-01-19Extend Gallery_Unit_Test_Case instead of Unit_Test_Case.Bharat Mediratta
2010-01-18Add starts_with().Bharat Mediratta
2010-01-18Add random_name().Bharat Mediratta
2010-01-17Create xxx_unsaved() versions for the case where you want to tinker with the ↵Bharat Mediratta
item before it gets saved.
2010-01-17Add random_photo()Bharat Mediratta
2010-01-17Add album title in random_album().Bharat Mediratta
2010-01-17Helper class for common test methods (like creating albums, photos,Bharat Mediratta
etc).
2009-12-22Fix some function definitions (they should be static)Bharat Mediratta
2009-12-21Add a helper for doing complex string comparisonsBharat Mediratta
2009-12-21Updated for K24Bharat Mediratta