summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-10-14 15:15:42 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-10-14 15:29:38 +0200
commitd904a09a049f64ad3b55eb2b5184b4c5554b4710 (patch)
tree0d2e6261517fab6f8846204682b948bb5350dd0f /tests
parentaa10825026edc391ac4280ec24077abff6452906 (diff)
downloadnextcloud-server-d904a09a049f64ad3b55eb2b5184b4c5554b4710.tar.gz
nextcloud-server-d904a09a049f64ad3b55eb2b5184b4c5554b4710.zip
The constant is now deprecated
Diffstat (limited to 'tests')
-rw-r--r--tests/data/app/code-checker/test-const.php2
-rw-r--r--tests/lib/app/codechecker/deprecationchecktest.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/data/app/code-checker/test-const.php b/tests/data/app/code-checker/test-const.php
index 2af6baf2f3d..7ea3bd6c870 100644
--- a/tests/data/app/code-checker/test-const.php
+++ b/tests/data/app/code-checker/test-const.php
@@ -5,6 +5,6 @@
*/
class BadClass {
public function foo() {
- $bar = OC_API::ADMIN_AUTH;
+ $bar = \OC_API::ADMIN_AUTH;
}
}
diff --git a/tests/lib/app/codechecker/deprecationchecktest.php b/tests/lib/app/codechecker/deprecationchecktest.php
index 2cf64a9d186..ee69f075a61 100644
--- a/tests/lib/app/codechecker/deprecationchecktest.php
+++ b/tests/lib/app/codechecker/deprecationchecktest.php
@@ -38,6 +38,7 @@ class DeprecationCheckTest extends TestCase {
['OCP\AppFramework\IApi', 1006, 'test-deprecated-use-alias.php'],
['AppFramework\IApi', 1001, 'test-deprecated-use-sub.php'],
['OAF\IApi', 1001, 'test-deprecated-use-sub-alias.php'],
+ ['OC_API::ADMIN_AUTH', 1003, 'test-const.php'],
];
}
@@ -61,7 +62,6 @@ class DeprecationCheckTest extends TestCase {
['test-extends.php'],
['test-implements.php'],
['test-static-call.php'],
- ['test-const.php'],
['test-new.php'],
['test-use.php'],
['test-identical-operator.php'],