From: Philipp Date: Fri, 11 Sep 2020 18:14:47 +0000 (+0200) Subject: add global init to test setUp X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1008f408c0062146c6f5ab5da9a0b938d55f508f;p=friendica.git add global init to test setUp --- diff --git a/tests/legacy/ApiTest.php b/tests/legacy/ApiTest.php index 101356e52e..ddeb40192a 100644 --- a/tests/legacy/ApiTest.php +++ b/tests/legacy/ApiTest.php @@ -50,6 +50,10 @@ class ApiTest extends FixtureTest */ protected function setUp() { + global $API, $called_api; + $API = []; + $called_api = []; + parent::setUp(); /** @var IConfig $config */