diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2024-11-07 17:29:54 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2024-11-07 17:29:54 +0100 |
commit | 47f109451d1a465ccc9b306cc7a1d08d4d69f55c (patch) | |
tree | f12d20c195eb2466967bf3d16465d5f504fdad59 | |
parent | 939e5d9ca59a9fb9dd86108715ea05c661be4040 (diff) | |
download | volse-hubzilla-47f109451d1a465ccc9b306cc7a1d08d4d69f55c.tar.gz volse-hubzilla-47f109451d1a465ccc9b306cc7a1d08d4d69f55c.tar.bz2 volse-hubzilla-47f109451d1a465ccc9b306cc7a1d08d4d69f55c.zip |
Fix some more deprecation warnings in the tests.
-rw-r--r-- | tests/unit/Module/AdminAccountEditTest.php | 9 | ||||
-rw-r--r-- | tests/unit/Module/TestCase.php | 3 |
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; |