diff --git a/tests/integration/Owncloud/OcisPhpSdk/GroupsTest.php b/tests/integration/Owncloud/OcisPhpSdk/GroupsTest.php index a37a2038..3756f8a7 100644 --- a/tests/integration/Owncloud/OcisPhpSdk/GroupsTest.php +++ b/tests/integration/Owncloud/OcisPhpSdk/GroupsTest.php @@ -175,4 +175,13 @@ public function testDeleteGroupByIdNoPermission(): void $this->expectException(UnauthorizedException::class); $ocisEinstein->deleteGroupByID($groupId); } + + public function testDeleteNonExistingGroup(): void + { + $token = $this->getAccessToken("admin", "admin"); + $ocis = new Ocis($this->ocisUrl, $token, ["verify" => false]); + $this->expectException(NotFoundException::class); + $ocis->deleteGroupByID("thisgroupdosenotexist"); + } + }