Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
abstract class Foo {
public static $modules = array('foo');
}
abstract class Bar extends Foo {
}
class Baz extends Bar {
}
When running Baz, WebTestBase::setUp() would call the following:
module_enable(array('foo', 'foo', 'foo'), TRUE);
And you would get the message: Enabled modules: foo, foo, foo
Here's a fix, but it likely needs a test.
Comment | File | Size | Author |
---|---|---|---|
#2 | simpletest-1760934-2.patch | 1.19 KB | tim.plunkett |
simpletest-setup_modules.patch | 653 bytes | tim.plunkett | |
Comments
Comment #1
tim.plunkettI've enjoyed seeing this lately:
Enabled modules: views, views_ui, views, views_ui, views, views_ui"
Comment #2
tim.plunkettRerolled, now we have DrupalUnitTestBase as well.
Comment #3
tim.plunkett#2: simpletest-1760934-2.patch queued for re-testing.
Comment #4
dawehnerLooks pretty sane!
Comment #5
webchickSeems sane. I asked Tim about test coverage and he wasn't sure of a way to test it.
Committed and pushed to 8.x. Thanks!