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.
ModuleHandlerTest::testUninstallProfileDependency()
$dependency = 'dblog';
$non_dependency = 'ban';
// Omissis.
// Uninstall the profile module that is not a dependent.
$result = $this->moduleInstaller()->uninstall([$non_dependency]);
$this->assertTrue($result, 'ModuleInstaller::uninstall() returns TRUE.');
$this->assertFalse($this->moduleHandler()->moduleExists($non_dependency));
$this->assertEquals(drupal_get_installed_schema_version($non_dependency), SCHEMA_UNINSTALLED, "$dependency module was uninstalled.");
The test code uninstall the ban module ($non_dependency
), but the message says the dblog module was uninstalled ($dependency
), which is not true.
Comment | File | Size | Author |
---|---|---|---|
#2 | fix-module-reference-3014772-2.patch | 1.49 KB | apaderno |
Comments
Comment #2
apadernoComment #3
TR CreditAttribution: TR commentedLooks good to me.
Comment #4
apadernoComment #5
alexpottCommitted and pushed 0a3f9f1a60 to 8.7.x and 2d9d447386 to 8.6.x. Thanks!