Closed (fixed)
Project:
Book access
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Reporter:
Created:
21 Jan 2009 at 22:45 UTC
Updated:
16 Nov 2010 at 18:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
harry slaughterI would definitely love to do this, but it's low priority due to time constraints.
I will also wait until unit testing is more integrated with drupal (d7?) and simpletest can pass it's own unit tests out of the box :)
Comment #2
lyricnz commentedDoes this help? It is a D6 SimpleTest (6.x-2.x-dev) that creates a few Book Pages in a Book, then updates a Role permission to add/remove permissions, checking each along the way. I haven't yet added tests for recent/current issues against this module, but that would be the logical next step.
336 passes, 0 fails, 0 exceptions
Comment #3
harry slaughterper our IRC conversation, i'll integrate your tests into book_access, but simpletest functionality in d6 does not seem quite stable yet.
Comment #4
jhedstromFWIW, simpletest works very well in 6.x at this time. The unstable nature of it is a result of backporting changes from HEAD/D7, but very rarely will those changes break existing test suites--if they do, fixing them now simply lessens the work for the D7 upgrade of a given module.
Comment #5
jhedstromThe tests in #2 are all passing, and look well written. I don't see any reason not to add this to dev. Once it's there, additional tests can be written to fix open issues.
Comment #6
harry slaughterOK, sorry for not giving this much attention. I'll review this and release it if it doesn't break anything :)
Comment #7
lyricnz commentedThe D6 simpletest module has recently been updated, so there might be a few little things that need updating (static getInfo function, different base class name, etc). I'm sure you'll cope :)
Comment #8
ilo commentedJust joinging after a convo with KiamLaLuno. I'll provide an updated testcase in the following hours for review.
Comment #9
avpadernoComment #10
Anonymous (not verified) commentedComment #11
Anonymous (not verified) commentedComment #13
lyricnz commentedHow is this "fixed"? The commit that refers to this issue doesn't contain any test.
http://drupal.org/cvs?commit=434132
Comment #14
Anonymous (not verified) commentedThe SimpleTest files are present in branch 6.x-2 (and I forgot to commit them until 5 minutes ago).
Comment #15
avpadernoThe SimpleTest files are present in branch 6.x-2 (and I forgot to commit them).
Comment #16
lyricnz commentedUm, no they're not.
CVS messages for Book access
http://drupal.org/project/cvs/196193
book_access 6.x-2.x branch
http://drupalcode.org/viewvc/drupal/contributions/modules/book_access/?p...
Comment #17
Anonymous (not verified) commentedThis is the right time.