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.
We're running Simpletest with a custom install profile (which is an edge case, I know) and the static in install_get_rid() is breaking DrupalWebTestCase::setUp(). When we run setUp() for the second time and our install profile runs, it tries to add a role using install_get_role(), but it fails because install_get_rid() is reporting that the role already exists.
Comment | File | Size | Author |
---|---|---|---|
#2 | 1885738-2.static.patch | 518 bytes | ksenzee |
#1 | 1885738-1.static.patch | 517 bytes | ksenzee |
Comments
Comment #1
ksenzeeOne approach would be to just get rid of the static as probably unnecessary optimization, but here's a patch that lets it be reset instead.
Comment #2
ksenzeeEr, disregard that last patch. Clearly need more sleep. $reset parameter should default to FALSE.