summaryrefslogtreecommitdiff
path: root/modules/gallery/tests/Item_Model_Test.php
AgeCommit message (Collapse)Author
2010-01-18Don't assert_same() now that typecasting is gone from ORM.Bharat Mediratta
2010-01-17Convert a $root to item::root() to fix a test.Bharat Mediratta
2010-01-17Get rid of urls_are_rawurlencoded_test -- it's no longer necessaryBharat Mediratta
since we can't have unsafe slugs. Add basic_validation_test.
2010-01-17Fix item_rename_fails_with_existing_name_test() -- broken because ofBharat Mediratta
http://dev.kohanaphp.com/issues/2504
2010-01-17Fix rename_album_test()Bharat Mediratta
2010-01-17Fix rename_photo_test().Bharat Mediratta
2010-01-17Partially updated for model based validation.Bharat Mediratta
2010-01-15Revert "Fix for ticket #978. Don't reset the original property as part of ↵Bharat Mediratta
the save processing, because that will overwrite the original values with all the new values. The problem with the original approach is that when changed event handlers used ->original(), it had already been reset as part of the save processing. Went back and forth on either leaving this alone and forcing callers to save the original prior to calling the save function, but there were a few event handlers that used ->original(). This seemed the easier change. So to reset the original you need to call reload() or clear(). There is now an optional parameter on the reload to only reload the original." This reverts commit daeaca110d16128040c86727c65df225e957f7c6.
2010-01-13Fix for ticket #978. Don't reset the original property as part of the save ↵Tim Almdal
processing, because that will overwrite the original values with all the new values. The problem with the original approach is that when changed event handlers used ->original(), it had already been reset as part of the save processing. Went back and forth on either leaving this alone and forcing callers to save the original prior to calling the save function, but there were a few event handlers that used ->original(). This seemed the easier change. So to reset the original you need to call reload() or clear(). There is now an optional parameter on the reload to only reload the original.
2009-12-21Updated for K24Bharat Mediratta
2009-11-06Correct spacingTim Almdal
2009-10-24When an item is renamed or move insure that the target file name doesn't ↵Tim Almdal
exist. fixes ticket #694
2009-09-11rawurlencode() path components in relative_path_cache andBharat Mediratta
relative_url_cache so that they're safe for browser use.
2009-08-29Standardize the access to the create_random_item methodTim Almdal
2009-08-02Change the API for getting to the original state of an ORM.Bharat Mediratta
Old API: $obj->original("field_name") New API: $obj->original()->field_name This allows us to revert the varous xxx_updated events back to passing an original ORM as well as the the updated one. This makes for a cleaner event API. Old API: comment_updated($comment) { $comment->original("field_name") } Old API: comment_updated($old, $new) { $old->field_name }
2009-07-30Remove debug statementsBharat Mediratta
2009-07-16Non-trivial changes to the event handling code:Bharat Mediratta
1) The item_updated event no longer takes the old and new items. Instead we overload ORM to track the original data and make that available via the item. This will allow us to move event publishing down into the API methods which in turn will give us more stability since we won't require each controller to remember to do it. 2) ORM class now tracks the original values. It doesn't track the original relationships (no need for that, yet) 3) Added new events: item_deleted group_deleted user_deleted
2009-05-27Restructure things so that the application is now just another module.Bharat Mediratta
Kohana makes this type of transition fairly straightforward in that all controllers/helpers/etc are still located in the cascading filesystem without any extra effort, except that I've temporarily added a hack to force modules/gallery into the module path. Rename what's left of "core" to be "application" so that it conforms more closely to the Kohana standard (basically, just application/config/config.php which is the minimal thing that you need in the application directory) There's still considerable work left to be done here.