diff --git a/Controller/ApiAttributeController.php b/Controller/ApiAttributeController.php index 2c832db..01b0c92 100644 --- a/Controller/ApiAttributeController.php +++ b/Controller/ApiAttributeController.php @@ -447,7 +447,6 @@ final class ApiAttributeController extends Controller */ public function apiContractAttributeValueDelete(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : void { - return; // @todo: I don't think values can be deleted? Only Attributes // However, It should be possible to remove UNUSED default values // either here or other function? diff --git a/tests/Controller/ApiControllerTest.php b/tests/Controller/ApiControllerTest.php index afe55fa..696b8b0 100755 --- a/tests/Controller/ApiControllerTest.php +++ b/tests/Controller/ApiControllerTest.php @@ -74,7 +74,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase $account = new Account(); TestUtils::setMember($account, 'id', 1); - $permission = new AccountPermission(); + $permission = new AccountPermission(); $permission->unit = 1; $permission->app = 2; $permission->setPermission( @@ -90,7 +90,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase $this->app->accountManager->add($account); $this->app->router = new WebRouter(); - $this->module = $this->app->moduleManager->get('ContractManagement', 'Api'); + $this->module = $this->app->moduleManager->get('ContractManagement', 'Api'); $this->attrModule = $this->app->moduleManager->get('ContractManagement', 'ApiAttribute'); $this->typeModule = $this->app->moduleManager->get('ContractManagement', 'ApiContractType'); diff --git a/tests/Models/ContractTest.php b/tests/Models/ContractTest.php index 4006b75..d474373 100755 --- a/tests/Models/ContractTest.php +++ b/tests/Models/ContractTest.php @@ -15,8 +15,6 @@ declare(strict_types=1); namespace Modules\ContractManagement\tests\Models; use Modules\ContractManagement\Models\Contract; -use Modules\ContractManagement\Models\ContractType; -use Modules\Media\Models\Media; /** * @internal