summaryrefslogtreecommitdiffstats
path: root/tests/lib/Share/ShareTest.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 16:51:06 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 16:51:06 +0200
commit1584c9ae9c23d2a7915750ef9203cba0bcebf766 (patch)
tree568db931f631afd6e96772cf2b3ac539c989ec42 /tests/lib/Share/ShareTest.php
parenta7c8d26d31cb1cf69e0e060c53622e545fcfbbb3 (diff)
downloadnextcloud-server-1584c9ae9c23d2a7915750ef9203cba0bcebf766.tar.gz
nextcloud-server-1584c9ae9c23d2a7915750ef9203cba0bcebf766.zip
Add visibility to all methods and position of static keyword
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests/lib/Share/ShareTest.php')
-rw-r--r--tests/lib/Share/ShareTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/Share/ShareTest.php b/tests/lib/Share/ShareTest.php
index d7adc144cf4..fce963ec43a 100644
--- a/tests/lib/Share/ShareTest.php
+++ b/tests/lib/Share/ShareTest.php
@@ -226,13 +226,13 @@ class ShareTest extends \Test\TestCase {
* @param string $url
* @param string $expectedResult
*/
- function testRemoveProtocolFromUrl($url, $expectedResult) {
+ public function testRemoveProtocolFromUrl($url, $expectedResult) {
$share = new \OC\Share\Share();
$result = self::invokePrivate($share, 'removeProtocolFromUrl', [$url]);
$this->assertSame($expectedResult, $result);
}
- function urls() {
+ public function urls() {
return [
['http://owncloud.org', 'owncloud.org'],
['https://owncloud.org', 'owncloud.org'],
@@ -245,13 +245,13 @@ class ShareTest extends \Test\TestCase {
* @param array $ungrouped
* @param array $grouped
*/
- function testGroupItems($ungrouped, $grouped) {
+ public function testGroupItems($ungrouped, $grouped) {
$result = DummyShareClass::groupItemsTest($ungrouped);
$this->compareArrays($grouped, $result);
}
- function compareArrays($result, $expectedResult) {
+ public function compareArrays($result, $expectedResult) {
foreach ($expectedResult as $key => $value) {
if (is_array($value)) {
$this->compareArrays($result[$key], $value);
@@ -261,7 +261,7 @@ class ShareTest extends \Test\TestCase {
}
}
- function dataProviderTestGroupItems() {
+ public function dataProviderTestGroupItems() {
return [
// one array with one share
[