summaryrefslogtreecommitdiff
path: root/core/tests/ORM_MPTT_Test.php
AgeCommit message (Collapse)Author
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.
2009-05-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-04-05Add a weight column to the items model. Change the album ordering toTim Almdal
use this as the default instead of id. This prepares the way for manual reordering in the organize functionality.
2009-03-25Fix unit tests where the albums, resizes and thumbs directory wereTim Almdal
being deleted. Fix for ticket #182
2009-03-11Fix the test failures. If albums are created manually instead ofTim Almdal
calling album::create, then the default sourt column needs to be set to id.
2009-01-11Fix ORM MPTT tests for MySQL strict mode (can't omit Iten type in inserts, ↵Andy Staudacher
it doesn't have a default value).
2008-12-23Change photo::create() and album::create() to take ORM instancesBharat Mediratta
instead of ids.
2008-12-07Change ORM_MPTT::add_to_parent() to take an ORM instead of an id soBharat Mediratta
that it's consistent with ORM_MPTT::move_to()
2008-12-07Rename moveTo to move_to and extend the test a bit.Bharat Mediratta
2008-12-05* Add a moveTo unit testTim Almdal
* Pass the module::event(..., $data) by reference to the handlers
2008-12-04Implement ORM_MPTT::delete() properly.Bharat Mediratta
Inline ORM_MPTT::_grow() for now Rewrite ORM_MPTT tests to be domain specific; they no longer use album/photo helpers.
2008-12-04Replace grow_test and constrict_test with add_hierarchy_test andBharat Mediratta
delete_hierarchy_test. Our tests will be more robust if we test the public API and not the internal private functions. If we get to the point where we have to test the private functions, we should probably move those functions into their own separate class with a public API.
2008-12-04Add unit tests to test growing and contracting the left and right pointersTim Almdal
Added a delete method to ORM_MPTT that contracts the tree when an item is deleted
2008-11-20Add unittest and caching for ORM_MTPP::descendantsTim Almdal
2008-11-20Add unittest and caching to ORM_MTPP::descendants_countTim Almdal
2008-11-07Add children_count() to ORM_MPTTBharat Mediratta
2008-11-05ORM_MPTT::parents() should not include the node itself.Bharat Mediratta
2008-11-04New tests for the ORM_MPTT class.Bharat Mediratta