summaryrefslogtreecommitdiff
path: root/modules/gallery_unit_test
AgeCommit message (Collapse)Author
2013-03-04Return "1" to CLI if not all unit tests pass.Jozef Selesi
2013-01-31Follow-on to 93963422505ecc790af62ae0503f301145debac3 for #1985 whichBharat Mediratta
was breaking all unit tests. Use module::install("gallery") instead of calling gallery_installer::install directly.
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-12-15Move the test time limit code into Unit_Test since some parts of theBharat Mediratta
code (like ORM_MPTT) mess with the time limit which interferes with the overall time limit set in Gallery_Unit_Test_Controller.
2010-10-25Set the unit test timeout to 5 minutesBharat Mediratta
2010-08-08Add in the missing 'error' count.Bharat Mediratta
2010-06-07Improve a comment.Bharat Mediratta
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-31Fix lots of warnings that pop up when we're in E_STRICT mode. They'reBharat Mediratta
mostly issues around uninitialized variables, calling non-static functions in a static context, calling Session functions directly instead of on its singleton, passing non-variables by reference, and subclasses not using the same interface as the parent class.
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-20Use the exception itself to print out a nice text message.Bharat Mediratta
2010-01-20Guard against missing/empty $description.Bharat Mediratta
2010-01-20Move the error page to the expected location for K24.Bharat Mediratta
2010-01-20Add random_tag().Bharat Mediratta
2010-01-20Add assert_array_equal_to_json().Bharat Mediratta
2010-01-19Extend Gallery_Unit_Test_Case instead of Unit_Test_Case.Bharat Mediratta
2010-01-19Our own version of Unit_Test_Case that adds useful functions likeBharat Mediratta
assert_equal_array().
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).
2010-01-17Add special output support for ORM_Validation_ExceptionBharat Mediratta
2010-01-17Special case output for ORM_Validation_ExceptionsBharat Mediratta
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-21Stop using Kohana::lang.Bharat Mediratta
2009-12-21Updated for K24Bharat Mediratta
2009-11-25Kohana::show_404() -> throw new Kohana_404_Exception()Bharat Mediratta
2009-10-28Only install and activate modules that have tests to run.Tim Almdal
2009-10-23Only look for tests that are in the active modules. Update the controller ↵Tim Almdal
golden file to reflect the current location of files.
2009-10-23Change the gallery_unit test to only intall into the test environment, ↵Tim Almdal
modules that are active in the non-test environment.
2009-09-02Run 'graphics::choose_default_toolkit();' to pick a toolkit, which weBharat Mediratta
normally do as part of a regular install.
2009-06-10Update test code to match the change made in ↵Bharat Mediratta
47810c9aec1e6b190a1a90505899669a2c89b770 where we adjust the site_domain in config.php
2009-05-28Reset the cascading file path properly before reinstalling.Bharat Mediratta
2009-05-28Print out exception traces for most errorsBharat Mediratta
2009-05-27Convert a few more references of APPPATH to MODPATH/galleryBharat Mediratta
2009-05-27Update all references to the core application to now point to theBharat Mediratta
gallery module. This type of mass update is prone to some small bugs.
2009-05-26Restructure the module lifecycle.Bharat Mediratta
Install: <module>_installer::install() is called, any necessary tables are created. Activate: <module>_installer::activate() is called. Module controllers are routable, helpers are accessible, etc. The module is in use. Deactivate: <module>_installer::deactivate() is called. Module code is not accessible or routable. Module is *not* in use, but its tables are still around. Uninstall: <module>_installer::uninstall() is called. Module is completely removed from the database. Admin > Modules will install and activate modules, but will only deactivate (will NOT uninstall modules).