Currently the logic in scheduler_node_presave() is not fully tested. We should add a unit test for this.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

legovaer’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
5.25 KB

I have a patch which covers 95% of that function. Definitely needs a review!

Status: Needs review » Needs work

The last submitted patch, 1: 2112867-unit-test-for-saving-scheduld-notes-0.patch, failed testing.

jonathan1055’s picture

Version: 7.x-1.x-dev » 8.x-1.x-dev
Status: Needs work » Active
FileSize
197.14 KB

Hi legovaer,
Since Oct 2013 (when this issue was raised) we have added quite a few more tests and using your excellent prototype test coverage analysis it seems that only two lines of hook_node_preave() are not currently tested:
hook node presave coverage

However, if we are going to write unit tests we should probably start it in 8.x first.