aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/Lib')
-rw-r--r--tests/unit/Lib/ActivityTest.php2
-rw-r--r--tests/unit/Lib/ZotlibTest.php8
2 files changed, 7 insertions, 3 deletions
diff --git a/tests/unit/Lib/ActivityTest.php b/tests/unit/Lib/ActivityTest.php
index c9ce79d8c..0e2703f2b 100644
--- a/tests/unit/Lib/ActivityTest.php
+++ b/tests/unit/Lib/ActivityTest.php
@@ -19,7 +19,7 @@ class ActivityTest extends UnitTestCase {
/**
* Dataprovider for test_get_textfield.
*/
- private function get_textfield_provider(): array {
+ public static function get_textfield_provider(): array {
return [
'get content field' => [
['content' => 'Some content'],
diff --git a/tests/unit/Lib/ZotlibTest.php b/tests/unit/Lib/ZotlibTest.php
index 05522678f..0ab89dc2f 100644
--- a/tests/unit/Lib/ZotlibTest.php
+++ b/tests/unit/Lib/ZotlibTest.php
@@ -1,5 +1,9 @@
<?php
-class LibzotTest extends \Zotlabs\Tests\Unit\UnitTestCase {
+namespace Zotlabs\Tests\Unit\Lib;
+
+use Zotlabs\Tests\Unit\UnitTestCase;
+
+class ZotlibTest extends UnitTestCase {
/**
* Test the `get_rpost_path` function.
*
@@ -11,7 +15,7 @@ class LibzotTest extends \Zotlabs\Tests\Unit\UnitTestCase {
$this->assertEquals($expected, \Zotlabs\Lib\Libzot::get_rpost_path($observer));
}
- private function get_rpost_path_provider() : array {
+ public static function get_rpost_path_provider() : array {
return [
'xchan_url without port' => [
'https://example.com/rpost?f=',