aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/tests
diff options
context:
space:
mode:
Diffstat (limited to 'apps/federatedfilesharing/tests')
-rw-r--r--apps/federatedfilesharing/tests/Controller/RequestHandlerControllerTest.php6
-rw-r--r--apps/federatedfilesharing/tests/TestCase.php4
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/federatedfilesharing/tests/Controller/RequestHandlerControllerTest.php b/apps/federatedfilesharing/tests/Controller/RequestHandlerControllerTest.php
index df138333de6..5674f700cb6 100644
--- a/apps/federatedfilesharing/tests/Controller/RequestHandlerControllerTest.php
+++ b/apps/federatedfilesharing/tests/Controller/RequestHandlerControllerTest.php
@@ -144,7 +144,7 @@ class RequestHandlerControllerTest extends \Test\TestCase {
);
}
- function testCreateShare() {
+ public function testCreateShare() {
// simulate a post request
$_POST['remote'] = 'localhost';
$_POST['token'] = 'token';
@@ -185,7 +185,7 @@ class RequestHandlerControllerTest extends \Test\TestCase {
$this->assertInstanceOf(DataResponse::class, $result);
}
- function testDeclineShare() {
+ public function testDeclineShare() {
$id = 42;
$_POST['token'] = 'token';
@@ -209,7 +209,7 @@ class RequestHandlerControllerTest extends \Test\TestCase {
}
- function testAcceptShare() {
+ public function testAcceptShare() {
$id = 42;
$_POST['token'] = 'token';
diff --git a/apps/federatedfilesharing/tests/TestCase.php b/apps/federatedfilesharing/tests/TestCase.php
index 813c3c8a15f..174197a1559 100644
--- a/apps/federatedfilesharing/tests/TestCase.php
+++ b/apps/federatedfilesharing/tests/TestCase.php
@@ -36,8 +36,8 @@ use OC\Group\Database;
* Base class for sharing tests.
*/
abstract class TestCase extends \Test\TestCase {
- const TEST_FILES_SHARING_API_USER1 = "test-share-user1";
- const TEST_FILES_SHARING_API_USER2 = "test-share-user2";
+ public const TEST_FILES_SHARING_API_USER1 = "test-share-user1";
+ public const TEST_FILES_SHARING_API_USER2 = "test-share-user2";
public static function setUpBeforeClass(): void {
parent::setUpBeforeClass();