Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ui/tests/selenium/roles/testUserRolesPermissions.php')
-rw-r--r--ui/tests/selenium/roles/testUserRolesPermissions.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/tests/selenium/roles/testUserRolesPermissions.php b/ui/tests/selenium/roles/testUserRolesPermissions.php
index 85d694a68ab..512392dd766 100644
--- a/ui/tests/selenium/roles/testUserRolesPermissions.php
+++ b/ui/tests/selenium/roles/testUserRolesPermissions.php
@@ -117,6 +117,10 @@ class testUserRolesPermissions extends CWebTest {
}
public function prepareServiceData() {
+ // Remove all unnecessary services before proceeding with execution.
+ DBExecute('DELETE FROM services');
+
+ // Create services for Service permission checks.
CDataHelper::call('service.create', [
[
'name' => 'Parent 1',