Source
'expected_error' => 'Invalid parameter "/1/lang": value must be one of "default", "en_GB", "en_US", "bg_BG", "ca_ES", "zh_CN", "zh_TW", "cs_CZ", "da_DK", "nl_NL", "fi_FI", "fr_FR", "ka_GE", "de_DE", "el_GR", "he_IL", "hu_HU", "id_ID", "it_IT", "ko_KR", "ja_JP", "lv_LV", "lt_LT", "nb_NO", "fa_IR", "pl_PL", "pt_BR", "pt_PT", "ro_RO", "ru_RU", "sk_SK", "es_ES", "sv_SE", "tr_TR", "uk_UA", "vi_VN".'
<?php
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
require_once dirname(__FILE__).'/../include/CAPITest.php';
/**
* @onBefore prepareUsersData
*
* @backup users, usrgrp, role, token, mfa, mfa_totp_secret, config
*/
class testUsers extends CAPITest {
private static $data = [
'userdirectoryid' => [
'Provision userdirectory' => null
],
'userdirectory_mediaid' => [
'Provision media mapping email' => null,
'Provision media mapping sms' => null
],
'userids' => [
'user_with_not_authorized_session' => null,
'user_with_expired_session' => null,
'user_with_passive_session' => null,
'user_with_disabled_usergroup' => null,
'user_for_token_tests' => null,
'user_with_valid_session' => null,
'user_for_extend_parameter_tests' => null,
'user_with_mfa_default' => null,
'user_with_mfa_duo' => null
],
'userid' => [
'Provisioned user' => null
],
'mediaid' => [
'Provision media mapping email' => null,
'Provision media mapping sms' => null
],
'mediatypeid' => [
'Email media type' => 1,
'SMS media type' => 3
],
'roleid' => [
'Provision user role' => null
],
'usrgrpid' => [
'Provision user group' => null
],
'userid' => [
'Provisioned user' => null
],
'mediaid' => [
'Provision media mapping email' => null,
'Provision media mapping sms' => null
],
'mediatypeid' => [
'Email media type' => 1,
'SMS media type' => 3
],
'roleid' => [
'Provision user role' => null
],
'usrgrpid' => [
'Provision user group' => null
],
'sessionids' => [
'not_authorized_session' => null,
'expired_session' => null,
'passive_session' => null,
'valid_for_user_with_disabled_usergroup' => null,
'valid' => null,
'for_extend_parameter_tests' => null
],
'tokens' => [
'not_authorized' => null,
'expired' => null,
'disabled' => null,
'valid' => null,