From 25e6fe7d948a1bbdccc15243cd1fdc3bd714e1f2 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 18 Oct 2023 01:03:57 +0000 Subject: [PATCH] add invalid api function tests --- tests/Controller/ApiControllerTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/Controller/ApiControllerTest.php b/tests/Controller/ApiControllerTest.php index c7633dd..427e2a6 100755 --- a/tests/Controller/ApiControllerTest.php +++ b/tests/Controller/ApiControllerTest.php @@ -216,4 +216,14 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase self::assertEquals('ApiTagEN', $response->getData('')[0]->getL11n()); self::assertEquals(self::$tagId, $response->getData('')[0]->id); } + + public function testInvalidapiTagL11nDelete() : void + { + $response = new HttpResponse(); + $request = new HttpRequest(new HttpUri('')); + + $request->header->account = 1; + $this->module->apiTagL11nDelete($request, $response); + self::assertEquals(RequestStatusCode::R_400, $response->header->status); + } }