Closed (fixed)
Project:
Node Hierarchy
Version:
6.x-1.x-dev
Component:
Drupal/PHP Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Feb 2009 at 18:30 UTC
Updated:
3 Jan 2014 at 00:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ronan commentedI'd appreciate any help you can give. I'm not sure what the best strategy for testing should be as I'm horribly bad at writing test myself. My instinct is to test every single function which leads to hours of coding and a very low percentage of test coverage.
Probably the major operations should be tested: setting parents, reordering children, creating menus, tokens.
Let me know if there's anything I can do to help
R
Comment #2
andreiashu commentedI've made a stub. I'll put it here so maybe other can contribute. I'll add stuff to it when i have time.
You must put this .test file under directory tests in NH directory.
Also NH must implement
hook_simpletestlike this (sorry, didn't ahve time to make a patch):Beware, i'm no expert in simpletest either :)
Comment #3
andreiashu commentedComment #4
andreiashu commentedDo we need to check for permissions too ? (siteoutline, add parent nodes, etc)
Comment #5
ronan commentedAwesome! I've commited the stub. Thanks for getting the ball rolling.
I'm setting this back to active so we can work on fleshing out the tests.
Thanks again
Ronan
Comment #6
andreiashu commentedNice that you committed them. I will take a look over them again when i'll get some time.
Thanks
andreiashu
Comment #7
markhalliwellCopy & Pasted: This issue pertains to the 6.x-1.x branch which is now legacy and is over two years old. If this issue is not applicable anymore, please consider closing it. Otherwise, please update this issue appropriately. Will be closed in two weeks if no response.
Comment #8
jbylsma commentedCleaning up the queue. As the initial tests were committed, I'm going to mark this as fixed.