Skip to content

Commit d94e6c9

Browse files
committed
test(Install): fix plugin wipe
1 parent 46acb2e commit d94e6c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

install/Install.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public function upgrade(string $from_version, array $args = []): bool
194194
}
195195
}
196196

197-
// Cherry pick install sub tasts to run
197+
// Cherry pick sub tasts to run from fresh install workflow
198198
// Useful to rewrite missing data in DB
199199
$install_dir = __DIR__ . '/install/';
200200
$update_scripts = scandir($install_dir);

tests/install/PluginInstallTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ protected function wipePlugin() {
9393
$plugin_name = TEST_PLUGIN_NAME;
9494
//Drop plugin configuration if exists
9595
$config = new Config();
96-
$config->deleteByCriteria(['context' => $plugin_name]);
96+
$config->deleteByCriteria(['context' => 'plugin:' . $plugin_name]);
9797

9898
// Drop tables of the plugin if they exist
9999
$result = $DB->listTables('glpi_plugin_' . $plugin_name . '_%');

0 commit comments

Comments
 (0)