aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-11-09 10:18:27 +0000
committerMario <mario@mariovavti.com>2024-11-09 10:18:27 +0000
commit2a152e0803309eb3646316bbe0d2a47353bad2b9 (patch)
tree3ce608e73d39b8547bd9309b9d709d7432a0a3d2 /tests
parent17183cc5dcbc5eb825d353d9f24fa74b2e4c6cdd (diff)
parent47f109451d1a465ccc9b306cc7a1d08d4d69f55c (diff)
downloadvolse-hubzilla-2a152e0803309eb3646316bbe0d2a47353bad2b9.tar.gz
volse-hubzilla-2a152e0803309eb3646316bbe0d2a47353bad2b9.tar.bz2
volse-hubzilla-2a152e0803309eb3646316bbe0d2a47353bad2b9.zip
Merge branch 'more-deprecations-in-tests' into 'dev'
Fix some more deprecation warnings in the tests. See merge request hubzilla/core!2161
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/Module/AdminAccountEditTest.php9
-rw-r--r--tests/unit/Module/TestCase.php3
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/unit/Module/AdminAccountEditTest.php b/tests/unit/Module/AdminAccountEditTest.php
index dab646a45..fe682c527 100644
--- a/tests/unit/Module/AdminAccountEditTest.php
+++ b/tests/unit/Module/AdminAccountEditTest.php
@@ -15,6 +15,15 @@ use Zotlabs\Model\Account;
class AdminAccountEditTest extends TestCase {
+ private $stub_is_site_admin;
+ private $stub_info;
+ private $stub_notice;
+ private $stub_check_security;
+ private $stub_get_form_security_token;
+
+ private array $info;
+ private array $notice;
+
#[Before]
public function setup_mocks(): void {
/*
diff --git a/tests/unit/Module/TestCase.php b/tests/unit/Module/TestCase.php
index 81d8e61fc..1a4cf52fc 100644
--- a/tests/unit/Module/TestCase.php
+++ b/tests/unit/Module/TestCase.php
@@ -26,6 +26,9 @@ class TestCase extends UnitTestCase {
// Import PHPMock methods into this class
use \phpmock\phpunit\PHPMock;
+ protected $killme_stub;
+ protected $goaway_stub;
+
#[After]
public function cleanup_stubs(): void {
$this->killme_stub = null;