Source
$group_wo_members = DB::insert('scim_group', [['name' => self::$data['scim_group_names']['group_wo_members']]]);
<?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__) . '/common/CAPIScimTest.php';
/**
* @onBefore prepareGroupData
*
* @onAfter clearData
*/
class testScimGroup extends CAPIScimTest {
private static $data = [
'userdirectoryids' => [
'ldap' => null,
'saml' => null
],
'userids' => [
'ldap_user' => null,
'user_active' => null,
'user_inactive' => null,
'admin' => null,
'user' => null,
'guest_user' => null
],
'usernames' => [
'ldap_user' => 'dwight.schrute@office.com',
'user_active' => 'jim.halpert@office.com',
'user_inactive' => 'pam.beesly@office.com'
],
'scim_groupids' => [
'group_wo_members' => null,
'group_w_members' => null,
'group_for_name_change' => null
],
'scim_group_names' => [
'group_wo_members' => 'office_administration',
'group_w_members' => 'office_sales',
'group_for_name_change' => 'office_reception'
],
'user_scim_groupids' => [
'user_group_w_members' => null
],
'tokenids' => [
'superadmin' => null,
'admin' => null,
'user' => null,
'guest_user' => null
],
'tokens' => [