diff --git a/lam/lib/types/user.inc b/lam/lib/types/user.inc index 06e21ac42..5bbc15124 100644 --- a/lam/lib/types/user.inc +++ b/lam/lib/types/user.inc @@ -28,6 +28,8 @@ * @author Roland Gruber */ +use LAM\TYPES\ConfiguredType; + /** * The account type for user accounts (e.g. Unix, Samba and Kolab). * diff --git a/lam/tests/lib/TypesTest.php b/lam/tests/lib/TypesTest.php index bd2cafee8..4be86c0d7 100644 --- a/lam/tests/lib/TypesTest.php +++ b/lam/tests/lib/TypesTest.php @@ -6,7 +6,7 @@ use user; /* This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2016 - 2023 Roland Gruber + Copyright (C) 2016 - 2025 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -37,7 +37,7 @@ class TypesTest extends TestCase { private $type; protected function setUp(): void { - $this->type = $this->getMockBuilder('ConfiguredType')->setMethods(['getBaseType', 'getModules'])->getMock(); + $this->type = $this->getMockBuilder('LAM\TYPES\ConfiguredType')->setMethods(['getBaseType', 'getModules'])->getMock(); $scope = new user($this->type); $this->type->method('getBaseType')->willReturn($scope); $this->type->method('getModules')->willReturn(['posixAccount']); diff --git a/rector.php b/rector.php index e2d5e3700..a152ee679 100644 --- a/rector.php +++ b/rector.php @@ -1,13 +1,11 @@ withFileExtensions([ 'php',