Closed (fixed)
Project:
Workbench Moderation
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 May 2011 at 19:03 UTC
Updated:
15 Nov 2017 at 10:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
eileen commentedSubscribe. It's totally unclear how to configure many of the features of Workbench.
Comment #2
becw commented@eileen: there's now Workbench Moderation documentation here on drupal.org.
@Dave Reid: since you created this issue, I've added some tests to the module. As you've mentioned elsewhere, it might make sense to consolidate the tests into a single test class (or something).
Comment #3
becw commentedTests are failing when they run on d.o, but not on my development environment. I'm updating this issue because we might as well keep all the talk of testing in one place for now.
Comment #4
becw commentedDave suggested that the tests are probably failing because some of them rely on the Workbench module, and the testbot doesn't pull in external dependencies. There's not much we can do about that.
Comment #5
dave reidYep - there isn't but it is being worked on actively by the qa.drupal.org team. What we can do is add 'dependencies' => array('workbench') to the moderation tests' getInfo() functions. This will prevent the tests from running on qa.drupal.org, and report back '0 fails' but also '0 passes' but still a green. It will allow us to test if patches apply to the current code base or not.
Comment #6
becw commentedActually, we can make workbench a dependency of just one of the tests--not all require workbench.
Comment #7
dave reidChanging the parameters for one setUp function without changing anything that depends on it as well will cause a PHP strict notice.
Comment #8
becw commentedWell, how about this.
Comment #9
dave reidLooks good initially - will test.
Comment #10
dave reidThis should do an $modules[] = 'workbench';
These setUp functions should probably pass $modules into parent::setUp().
Comment #11
dave reidComment #12
becw commentedOk, here's a revised patch.
Comment #13
dave reidIf this passes tests locally this looks good to me.
Comment #14
becw commentedI committed the patch from #12 in 1d0e2d.
This issue should remain open; the tests in general could still stand some review.
Comment #16
damienmckennaThis tidies up the setUp() methods, hopefully it might help with the mysterious errors I'm getting in #2865390: Rerun Workbench Moderation tests with each patch.
Comment #17
damienmckennaThe 7.x-3.x branch is the current one.
Comment #19
damienmckennaComment #20
damienmckennaYou know, given that this is so old, lets just close it as-is and we'll pick up the cleanup work in another issue.