From 47f109451d1a465ccc9b306cc7a1d08d4d69f55c Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Thu, 7 Nov 2024 17:29:54 +0100 Subject: Fix some more deprecation warnings in the tests. --- tests/unit/Module/AdminAccountEditTest.php | 9 +++++++++ tests/unit/Module/TestCase.php | 3 +++ 2 files changed, 12 insertions(+) (limited to 'tests') 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; -- cgit v1.2.3