]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Module/Api/GnuSocial/Help/TestTest.php
Happy New Year 2023!
[friendica.git] / tests / src / Module / Api / GnuSocial / Help / TestTest.php
index be0e187a63ae2edee730284b0e7574b2073cd272..1b7934a1969d7c0781944940eda9069f3fa6e9ec 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -31,7 +31,7 @@ class TestTest extends ApiTest
        public function testJson()
        {
                $response = (new Test(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), [], ['extension' => 'json']))
-                       ->run();
+                       ->run($this->httpExceptionMock);
 
                $json = $this->toJson($response);
 
@@ -45,7 +45,7 @@ class TestTest extends ApiTest
        public function testXml()
        {
                $response = (new Test(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), [], ['extension' => 'xml']))
-                       ->run();
+                       ->run($this->httpExceptionMock);
 
                self::assertEquals([
                        'Content-type'                => ['text/xml'],