summaryrefslogtreecommitdiff
path: root/modules/gallery/tests
AgeCommit message (Collapse)Author
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-02-07Add prefix support for the target of RENAME TABLE.Bharat Mediratta
2010-02-06Fix for ticket 1004: Replace all uses of split with explode (none actually ↵Andy Staudacher
required regular expressions). Thanks to Brian Hartsock for providing a patch!
2010-02-02use html::purify to cleans the additional content on the admin maintence page.Tim Almdal
2010-02-02Update the xss golden file to reflect the changes to the admin screen.Tim Almdal
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-30Use Item_Model::as_restful_array() to simplify tests.Bharat Mediratta
2010-01-30Add Item_Model::as_restful_array() for convenience.Bharat Mediratta
2010-01-30VerifiedBharat Mediratta
2010-01-28Reviewed DIRTY_ATTRBharat Mediratta
2010-01-28Reviewed all DIRTY_JS entriesBharat Mediratta
2010-01-28Make the varible for the profile name more descriptive and clean the labelTim Almdal
2010-01-28Update the xss golden file for user profile changes.Tim Almdal
2010-01-27Prevent accidentally deleting the root album.Bharat Mediratta
2010-01-27Change "resource" to "entity" in REST responses. They're allBharat Mediratta
resources, but we differentiate resources as collections and entities.
2010-01-27Verified and updatedBharat Mediratta
2010-01-27Switch to using test helper. Also, reload the album before runningBharat Mediratta
access::deny since the mptt pointers will have changed.
2010-01-26Added view_permissions_propagate_down_to_photos_test().Bharat Mediratta
2010-01-23Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_devBharat Mediratta
Conflicts: modules/gallery/tests/xss_data.txt
2010-01-23Update the Xss_Security_Test and the Controller_Auth_Test.Tim Almdal
2010-01-23UpdatedBharat Mediratta
2010-01-23Update tests for recent REST changes.Bharat Mediratta
2010-01-23Don't use ORM_MPTT::move_to directly, it's protected.Bharat Mediratta
2010-01-22Moved to Item_Rest_Helper_Test.phpBharat Mediratta
2010-01-22Updated tests to pass after recent refactor of gallery_rest -> item_rest.Bharat Mediratta
2010-01-21We don't need CSRF in Rest_Controller::__call() because we use access tokens.Bharat Mediratta
2010-01-21Make sure that we actually don't have permissions, to avoid contamination w/ ↵Bharat Mediratta
other tests.
2010-01-21Exclude modules/gallery_unit_test/views/kohana/error.phpBharat Mediratta
2010-01-21Fix a minor bad expectation.Bharat Mediratta
2010-01-21Can't call ORM_MPTT::move_to() externally, so call Item_Model::save() instead.Bharat Mediratta
2010-01-21Reload the album after adding the photo so that MPTT pointers are correct.Bharat Mediratta
2010-01-20Remove debug code.Bharat Mediratta
2010-01-20Stop using MY_ORM::original().Bharat Mediratta
2010-01-20Stop using MY_ORM::original(). It's got very odd semantics and we areBharat Mediratta
not capturing all cases for setting and resetting $original, which leads to some weird and hard to reproduce behavior. Instead, if we need the original just reload it from the database. This may result in a somewhat excessive load in places, but we'll have to fix that in a later optimization pass.
2010-01-19Extend Gallery_Unit_Test_Case instead of Unit_Test_Case.Bharat Mediratta
2010-01-19Fix some validation checks to check to see if the original was loadedBharat Mediratta
before deciding whether or not we changed a value. Change valid_name to be cascading, not parallel.
2010-01-19Change "filename" to "name" in the edit album form. I'd rather haveBharat Mediratta
consistency between field names than deal with underlying issues with Forge bitching about the "name" property.
2010-01-19Change "dirname" to "name" in the edit album form. I'd rather haveBharat Mediratta
consistency between field names than deal with underlying issues with Forge bitching about the "name" property.
2010-01-19Change rest::url() to take a module name and a resource. The moduleBharat Mediratta
does the rest. This function is symmetrical to rest::resolve.
2010-01-19Rewrite the tests entirely to cover the new REST code.Bharat Mediratta
2010-01-18Updated for model based validation. FixedBharat Mediratta
change_photo_no_csrf_fails_test() which has been broken since we deleted Rest_Controller.
2010-01-18Add slug_is_url_safe_test()Bharat Mediratta
2010-01-18Update for model validation. Move the url safe tests into Item_Model_Test.Bharat Mediratta
2010-01-18No longer necessary; all photo and movie helper code is now in the model.Bharat Mediratta
2010-01-18No longer necessary; all relevant album helper code is now in the model.Bharat Mediratta
2010-01-18Updated for model based validation.Bharat Mediratta
change_album_no_csrf_fails_test() had been broken since we got rid of REST_Controller, but was poorly written so we didn't realize it. Boo.
2010-01-18Update for model based validation. Use test helper. Reduce the code size ↵Bharat Mediratta
greatly!
2010-01-18switch to test::starts_with().Bharat Mediratta
2010-01-18Minor test cleanup.Bharat Mediratta