diff --git a/tests/data/app/code-checker/test-const.php b/tests/data/app/code-checker/test-const.php
index 2af6baf2f3dbf8e8f98b3ba51b6be075c38313f6..7ea3bd6c870378de4e827b99821ce7c3d0a13a38 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 2cf64a9d18667bb22a2a5502eeb9b0b1a45fea4b..ee69f075a6109924ddff88deceef9d063b5185dd 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'],