From d904a09a049f64ad3b55eb2b5184b4c5554b4710 Mon Sep 17 00:00:00 2001
From: Joas Schilling <nickvergessen@owncloud.com>
Date: Wed, 14 Oct 2015 15:15:42 +0200
Subject: [PATCH] The constant is now deprecated

---
 tests/data/app/code-checker/test-const.php         | 2 +-
 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 2af6baf2f3..7ea3bd6c87 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 2cf64a9d18..ee69f075a6 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'],
-- 
GitLab