From 1008f408c0062146c6f5ab5da9a0b938d55f508f Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 11 Sep 2020 20:14:47 +0200 Subject: [PATCH] add global init to test setUp --- tests/legacy/ApiTest.php | 4 ++++ 1 file changed, 4 insertions(+) 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 */