Skip to content

Commit 6ed5ecf

Browse files
test: load system exact UserGroup by id
1 parent d061af4 commit 6ed5ecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Tests/APIModelsUserGroupTestCase.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class APIModelsUserGroupTestCase extends TestCase {
158158
$this->assert_does_not_throw(
159159
callable: function () {
160160
# Create a UserGroup with the system scope to test with
161-
$admin_group = UserGroup::query(name: 'admins')->first();
161+
$admin_group = new UserGroup(id: 0);
162162
$admin_group->validate_scope('system');
163163
},
164164
);

0 commit comments

Comments
 (0)