https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5365186
)
add global init to test setUp
author
Philipp
<admin@philipp.info>
Fri, 11 Sep 2020 18:14:47 +0000
(20:14 +0200)
committer
Philipp
<admin@philipp.info>
Fri, 11 Sep 2020 18:14:47 +0000
(20:14 +0200)
tests/legacy/ApiTest.php
patch
|
blob
|
history
diff --git
a/tests/legacy/ApiTest.php
b/tests/legacy/ApiTest.php
index
101356e
..
ddeb401
100644
(file)
--- 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 */