diff options
-rw-r--r-- | tests/data/app/code-checker/test-const.php | 2 | ||||
-rw-r--r-- | tests/lib/app/codechecker/deprecationchecktest.php | 2 |
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'], |