diff --git a/phpunit.xml b/phpunit.xml deleted file mode 100644 index 44332c9cf..000000000 --- a/phpunit.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - tests/units - - - \ No newline at end of file diff --git a/src/Install.php b/src/Install.php index a3b8e478f..58f918829 100644 --- a/src/Install.php +++ b/src/Install.php @@ -491,6 +491,14 @@ protected function deleteTables() { $displayPreference->deleteByCriteria(['itemtype' => 'PluginFormcreatorIssue']); } + protected function deleteMiniDashboard(): bool { + $dashboard = new Dashboard(); + + return $dashboard->deleteByCriteria([ + 'key' => 'plugin_formcreator_issue_counters' + ]); + } + /** * http://stackoverflow.com/questions/834303/startswith-and-endswith-functions-in-php * @param string $haystack @@ -508,6 +516,7 @@ public function uninstall() { $this->deleteTicketRelation(); $this->deleteTables(); $this->deleteNotifications(); + $this->deleteMiniDashboard(); $config = new Config(); $config->deleteByCriteria(['context' => 'formcreator']);