aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/App/CodeChecker/CodeCheckerTest.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-06-09 16:45:12 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-07-05 13:02:16 +0200
commit4e5cd1efea7c522ebd763dd3b96eb5f8c0e8407b (patch)
treea184e5b30726048e278f504ebfaa08986a716235 /tests/lib/App/CodeChecker/CodeCheckerTest.php
parent7a3d83d63038e5db0af790b827b73ec7335a6961 (diff)
downloadnextcloud-server-4e5cd1efea7c522ebd763dd3b96eb5f8c0e8407b.tar.gz
nextcloud-server-4e5cd1efea7c522ebd763dd3b96eb5f8c0e8407b.zip
Fix tests of CodeChecker and MigrationService
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/lib/App/CodeChecker/CodeCheckerTest.php')
-rw-r--r--tests/lib/App/CodeChecker/CodeCheckerTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib/App/CodeChecker/CodeCheckerTest.php b/tests/lib/App/CodeChecker/CodeCheckerTest.php
index cdbb7c17da5..bb121eccc44 100644
--- a/tests/lib/App/CodeChecker/CodeCheckerTest.php
+++ b/tests/lib/App/CodeChecker/CodeCheckerTest.php
@@ -23,7 +23,8 @@ class CodeCheckerTest extends TestCase {
*/
public function testFindInvalidUsage($expectedErrorToken, $expectedErrorCode, $fileToVerify) {
$checker = new CodeChecker(
- new PrivateCheck(new EmptyCheck())
+ new PrivateCheck(new EmptyCheck()),
+ false
);
$errors = $checker->analyseFile(\OC::$SERVERROOT . "/tests/data/app/code-checker/$fileToVerify");
@@ -49,7 +50,8 @@ class CodeCheckerTest extends TestCase {
*/
public function testPassValidUsage($fileToVerify) {
$checker = new CodeChecker(
- new PrivateCheck(new EmptyCheck())
+ new PrivateCheck(new EmptyCheck()),
+ false
);
$errors = $checker->analyseFile(\OC::$SERVERROOT . "/tests/data/app/code-checker/$fileToVerify");