assertUninstallModuleUpdates example

// Check that the appropriate hook was fired and the appropriate log     // message appears. (But don't check for the log message if the dblog     // module was just uninstalled, since the {watchdog} table won't be there     // anymore.)     $this->assertSession()->pageTextContains('hook_modules_uninstalled fired for ' . $module);
    $this->assertLogMessage('system', "%module module uninstalled.", ['%module' => $module], RfcLogLevel::INFO);

    // Check that the module's database tables no longer exist.     $this->assertModuleTablesDoNotExist($module);
    // Check that the module's config files no longer exist.     $this->assertNoModuleConfig($module);
    $this->assertUninstallModuleUpdates($module);
  }

  /** * Asserts the module post update functions after install. * * @param string $module * The module that got installed. * * @internal */
  protected function assertInstallModuleUpdates(string $module): void {
    
Home | Imprint | This part of the site doesn't use cookies.