Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 17:54:27 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 17:54:27 +0300
commit28f8eb5dba60a75f7e22debbdc26f1d3164deb18 (patch)
tree5bb8a104ec6b5af821b81cf392c69167deca4c0a /tests
parent1584c9ae9c23d2a7915750ef9203cba0bcebf766 (diff)
Add visibility to all constants
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests')
-rw-r--r--tests/Core/Controller/SvgControllerTest.php10
-rw-r--r--tests/lib/AppTest.php10
-rw-r--r--tests/lib/ConfigTest.php2
-rw-r--r--tests/lib/Files/FilesystemTest.php4
-rw-r--r--tests/lib/Files/Storage/Wrapper/EncodingTest.php4
-rw-r--r--tests/lib/Memcache/FactoryTest.php8
-rw-r--r--tests/lib/Share/Backend.php6
7 files changed, 22 insertions, 22 deletions
diff --git a/tests/Core/Controller/SvgControllerTest.php b/tests/Core/Controller/SvgControllerTest.php
index 684199f5cb6..76d04d1af32 100644
--- a/tests/Core/Controller/SvgControllerTest.php
+++ b/tests/Core/Controller/SvgControllerTest.php
@@ -37,11 +37,11 @@ use Test\TestCase;
* This class provides test cases for the svg controller
*/
class SvgControllerTest extends TestCase {
- const TEST_IMAGES_SOURCE_PATH = __DIR__ . '/../../data/svg';
- const TEST_IMAGES_PATH = __DIR__ . '/../../../core/img/testImages';
- const TEST_IMAGE_MIXED = 'mixed-source.svg';
- const TEST_IMAGE_RECT = 'rect-black.svg';
- const TEST_IMAGES = [
+ public const TEST_IMAGES_SOURCE_PATH = __DIR__ . '/../../data/svg';
+ public const TEST_IMAGES_PATH = __DIR__ . '/../../../core/img/testImages';
+ public const TEST_IMAGE_MIXED = 'mixed-source.svg';
+ public const TEST_IMAGE_RECT = 'rect-black.svg';
+ public const TEST_IMAGES = [
self::TEST_IMAGE_MIXED,
self::TEST_IMAGE_RECT,
];
diff --git a/tests/lib/AppTest.php b/tests/lib/AppTest.php
index a53e3f8e252..7ada4ec746a 100644
--- a/tests/lib/AppTest.php
+++ b/tests/lib/AppTest.php
@@ -20,11 +20,11 @@ use OCP\IAppConfig;
* @group DB
*/
class AppTest extends \Test\TestCase {
- const TEST_USER1 = 'user1';
- const TEST_USER2 = 'user2';
- const TEST_USER3 = 'user3';
- const TEST_GROUP1 = 'group1';
- const TEST_GROUP2 = 'group2';
+ public const TEST_USER1 = 'user1';
+ public const TEST_USER2 = 'user2';
+ public const TEST_USER3 = 'user3';
+ public const TEST_GROUP1 = 'group1';
+ public const TEST_GROUP2 = 'group2';
public function appVersionsProvider() {
return [
diff --git a/tests/lib/ConfigTest.php b/tests/lib/ConfigTest.php
index d5e8bd28bb3..aa6c50528cc 100644
--- a/tests/lib/ConfigTest.php
+++ b/tests/lib/ConfigTest.php
@@ -9,7 +9,7 @@
namespace Test;
class ConfigTest extends TestCase {
- const TESTCONTENT = '<?php $CONFIG=array("foo"=>"bar", "beers" => array("Appenzeller", "Guinness", "Kölsch"), "alcohol_free" => false);';
+ public const TESTCONTENT = '<?php $CONFIG=array("foo"=>"bar", "beers" => array("Appenzeller", "Guinness", "Kölsch"), "alcohol_free" => false);';
/** @var array */
private $initialConfig = ['foo' => 'bar', 'beers' => ['Appenzeller', 'Guinness', 'Kölsch'], 'alcohol_free' => false];
diff --git a/tests/lib/Files/FilesystemTest.php b/tests/lib/Files/FilesystemTest.php
index 9fc3032fa28..d9e6de898f0 100644
--- a/tests/lib/Files/FilesystemTest.php
+++ b/tests/lib/Files/FilesystemTest.php
@@ -59,8 +59,8 @@ class DummyMountProvider implements IMountProvider {
* @package Test\Files
*/
class FilesystemTest extends \Test\TestCase {
- const TEST_FILESYSTEM_USER1 = "test-filesystem-user1";
- const TEST_FILESYSTEM_USER2 = "test-filesystem-user1";
+ public const TEST_FILESYSTEM_USER1 = "test-filesystem-user1";
+ public const TEST_FILESYSTEM_USER2 = "test-filesystem-user1";
/**
* @var array tmpDirs
diff --git a/tests/lib/Files/Storage/Wrapper/EncodingTest.php b/tests/lib/Files/Storage/Wrapper/EncodingTest.php
index 1f199239a8e..498d9f78248 100644
--- a/tests/lib/Files/Storage/Wrapper/EncodingTest.php
+++ b/tests/lib/Files/Storage/Wrapper/EncodingTest.php
@@ -9,8 +9,8 @@
namespace Test\Files\Storage\Wrapper;
class EncodingTest extends \Test\Files\Storage\Storage {
- const NFD_NAME = 'ümlaut';
- const NFC_NAME = 'ümlaut';
+ public const NFD_NAME = 'ümlaut';
+ public const NFC_NAME = 'ümlaut';
/**
* @var \OC\Files\Storage\Temporary
diff --git a/tests/lib/Memcache/FactoryTest.php b/tests/lib/Memcache/FactoryTest.php
index cf4da7839c4..19edf4aa3dd 100644
--- a/tests/lib/Memcache/FactoryTest.php
+++ b/tests/lib/Memcache/FactoryTest.php
@@ -61,10 +61,10 @@ class Test_Factory_Unavailable_Cache2 extends NullCache {
}
class FactoryTest extends \Test\TestCase {
- const AVAILABLE1 = '\\Test\\Memcache\\Test_Factory_Available_Cache1';
- const AVAILABLE2 = '\\Test\\Memcache\\Test_Factory_Available_Cache2';
- const UNAVAILABLE1 = '\\Test\\Memcache\\Test_Factory_Unavailable_Cache1';
- const UNAVAILABLE2 = '\\Test\\Memcache\\Test_Factory_Unavailable_Cache2';
+ public const AVAILABLE1 = '\\Test\\Memcache\\Test_Factory_Available_Cache1';
+ public const AVAILABLE2 = '\\Test\\Memcache\\Test_Factory_Available_Cache2';
+ public const UNAVAILABLE1 = '\\Test\\Memcache\\Test_Factory_Unavailable_Cache1';
+ public const UNAVAILABLE2 = '\\Test\\Memcache\\Test_Factory_Unavailable_Cache2';
public function cacheAvailabilityProvider() {
return [
diff --git a/tests/lib/Share/Backend.php b/tests/lib/Share/Backend.php
index 661da326e4c..18443a4e247 100644
--- a/tests/lib/Share/Backend.php
+++ b/tests/lib/Share/Backend.php
@@ -22,9 +22,9 @@
namespace Test\Share;
class Backend implements \OCP\Share_Backend {
- const FORMAT_SOURCE = 0;
- const FORMAT_TARGET = 1;
- const FORMAT_PERMISSIONS = 2;
+ public const FORMAT_SOURCE = 0;
+ public const FORMAT_TARGET = 1;
+ public const FORMAT_PERMISSIONS = 2;
private $testItem1 = 'test.txt';
private $testItem2 = 'share.txt';