summaryrefslogtreecommitdiff
path: root/modules
AgeCommit message (Collapse)Author
2010-01-18Switch from ORM_MPTT::$db_builder to db::build().Bharat Mediratta
2010-01-18Add starts_with().Bharat Mediratta
2010-01-18Minor test cleanup.Bharat Mediratta
2010-01-18Update valid_parent() to disallow moving an item inside its own hierarchy.Bharat Mediratta
Move move_to() inside save()
2010-01-18in move_to(), move the lock to before we do any calculations so that we have ↵Bharat Mediratta
the latest data.
2010-01-18Added move_album_fails_wrong_target_type_test()Bharat Mediratta
2010-01-18Updated tests to match what the expected new API for moving items.Bharat Mediratta
Now to move an item, you just change its parent_id.
2010-01-18Switch to using test::random_name() to avoid integer names.Bharat Mediratta
Fix up rename_photo_test.
2010-01-18Fix renaming in save() by moving the actual rename action underBharat Mediratta
parent::save(). This is consistent with other changes because all filesystem operations happen after the database change is committed. Also, inline rename() since it's fairly simple now.
2010-01-18Kohana ticket #2504 is resolved, so this test is no longer necessary.Bharat Mediratta
2010-01-18In valid_name, don't query on the id if it's null.Bharat Mediratta
2010-01-18Add random_name().Bharat Mediratta
2010-01-18In item_rename_fails_with_existing_name_test switch validate() toBharat Mediratta
save() now that Kohana ticket #2504 is resolved.
2010-01-18Merge branch 'master' into bharat_devBharat Mediratta
2010-01-18Coerce some integers to strings now that ORM isn't typecasting anymore.Bharat Mediratta
2010-01-18Coerce some integers to strings now that ORM isn't typecasting anymore.Bharat Mediratta
2010-01-18The root parent id is 0, not null (this deviation exposed by the new lack of ↵Bharat Mediratta
typecasting in ORM).
2010-01-18Don't assert_same() now that typecasting is gone from ORM.Bharat Mediratta
2010-01-18Don't use rand() as the name. Now that ORM::load_types() is gone, itBharat Mediratta
won't get coerced to a string, and then we wind up comparing: 12345 != 12345-12321 In the old approach, they'd both be strings so they'd be inequal. But in the new approach the first value is an integer (sinced it came from rand()) so the second value is typecast to an integer which drops everything after the - sign so they appear equal.
2010-01-18Merge branch 'master' into kohana_updateBharat Mediratta
2010-01-18VerifiedBharat Mediratta
2010-01-18Switch from stdClass to arrays which works around issues caused inBharat Mediratta
http://dev.kohanaphp.com/issues/2459 -- I don't exactly know why, but the solutions are equivalent so I'm not going to dig too far.
2010-01-18Change DENY and ALLOW to "0" and "1" to match the fact that ORM noBharat Mediratta
longer typecasts values as of http://dev.kohanaphp.com/issues/2459
2010-01-18Reload $item after removing view permissions.Bharat Mediratta
2010-01-18Overload url::current() and url::merge() to make the current url XSSBharat Mediratta
safe. Add tests to make sure that it doesn't relapse with future Kohana changes. Fixes ticket #983. Ref: http://gallery.menalto.com/node/93738
2010-01-18Add a test to verify that bug #2504 is still around. When this testBharat Mediratta
starts failing, the bug is fixed and we can go fix our code that works around it.
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-17Mostly conver to model based validation. Not all tests pass yet.Bharat Mediratta
2010-01-17Change IdentityProvider::create_user() to take $email as well, since that's ↵Bharat Mediratta
a required parameter for the Gallery driver.
2010-01-17Switch to model based validation approach.Bharat Mediratta
2010-01-17Use test::random_photo_unsaved() instead.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-17Updated for model based validation.Bharat Mediratta
2010-01-17Make set_data_file() chainable.Bharat Mediratta
2010-01-17Make it work with model based validation.Bharat Mediratta
Refactor _get_proxy() out of setup() and into its own helper function.
2010-01-17Add random_photo()Bharat Mediratta
2010-01-17Updated for model based validation.Bharat Mediratta
2010-01-17Updated for model based validation.Bharat Mediratta
2010-01-17Add validation for guest_email and guest_url.Bharat Mediratta
2010-01-17Updated for model based validation.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-17Refactor to work with model based validation.Bharat Mediratta
While I'm at it, pull _make_comment() out of setup and only call it on demand; this makes the tests run faster.
2010-01-17Add special output support for ORM_Validation_ExceptionBharat Mediratta
2010-01-17Use an empty password for the guest user.Bharat Mediratta