summaryrefslogtreecommitdiffstats
path: root/tests/core
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-06-03 12:03:02 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-06-03 12:33:29 +0200
commitd3e3a84cae9c8926bcff810a0e16bb9dcd024888 (patch)
tree80d5588474a46f07c6dd8da142c429c3655f058f /tests/core
parent500748725c46803ff2a0ec291db37a831322012c (diff)
downloadnextcloud-server-d3e3a84cae9c8926bcff810a0e16bb9dcd024888.tar.gz
nextcloud-server-d3e3a84cae9c8926bcff810a0e16bb9dcd024888.zip
Move the helpful method to the TestCase class
Diffstat (limited to 'tests/core')
-rw-r--r--tests/core/command/encryption/disabletest.php2
-rw-r--r--tests/core/command/encryption/enabletest.php2
-rw-r--r--tests/core/command/encryption/setdefaultmoduletest.php2
-rw-r--r--tests/core/command/user/deletetest.php4
-rw-r--r--tests/core/command/user/lastseentest.php4
5 files changed, 7 insertions, 7 deletions
diff --git a/tests/core/command/encryption/disabletest.php b/tests/core/command/encryption/disabletest.php
index 26c814a9c4e..dfd06e2e26e 100644
--- a/tests/core/command/encryption/disabletest.php
+++ b/tests/core/command/encryption/disabletest.php
@@ -80,6 +80,6 @@ class DisableTest extends TestCase {
->with('core', 'encryption_enabled', 'no');
}
- \Test_Helper::invokePrivate($this->command, 'execute', [$this->consoleInput, $this->consoleOutput]);
+ self::invokePrivate($this->command, 'execute', [$this->consoleInput, $this->consoleOutput]);
}
}
diff --git a/tests/core/command/encryption/enabletest.php b/tests/core/command/encryption/enabletest.php
index 377d0e2a528..e2357464aa1 100644
--- a/tests/core/command/encryption/enabletest.php
+++ b/tests/core/command/encryption/enabletest.php
@@ -114,6 +114,6 @@ class EnableTest extends TestCase {
->method('writeln')
->with($this->stringContains($expectedDefaultModuleString));
- \Test_Helper::invokePrivate($this->command, 'execute', [$this->consoleInput, $this->consoleOutput]);
+ self::invokePrivate($this->command, 'execute', [$this->consoleInput, $this->consoleOutput]);
}
}
diff --git a/tests/core/command/encryption/setdefaultmoduletest.php b/tests/core/command/encryption/setdefaultmoduletest.php
index e2a61dd10f6..3230a57db07 100644
--- a/tests/core/command/encryption/setdefaultmoduletest.php
+++ b/tests/core/command/encryption/setdefaultmoduletest.php
@@ -87,6 +87,6 @@ class SetDefaultModuleTest extends TestCase {
->method('writeln')
->with($this->stringContains($expectedString));
- \Test_Helper::invokePrivate($this->command, 'execute', [$this->consoleInput, $this->consoleOutput]);
+ self::invokePrivate($this->command, 'execute', [$this->consoleInput, $this->consoleOutput]);
}
}
diff --git a/tests/core/command/user/deletetest.php b/tests/core/command/user/deletetest.php
index bfcf031b719..99822ec6589 100644
--- a/tests/core/command/user/deletetest.php
+++ b/tests/core/command/user/deletetest.php
@@ -83,7 +83,7 @@ class DeleteTest extends TestCase {
->method('writeln')
->with($this->stringContains($expectedString));
- \Test_Helper::invokePrivate($this->command, 'execute', [$this->consoleInput, $this->consoleOutput]);
+ self::invokePrivate($this->command, 'execute', [$this->consoleInput, $this->consoleOutput]);
}
public function testInvalidUser() {
@@ -101,6 +101,6 @@ class DeleteTest extends TestCase {
->method('writeln')
->with($this->stringContains('User does not exist'));
- \Test_Helper::invokePrivate($this->command, 'execute', [$this->consoleInput, $this->consoleOutput]);
+ self::invokePrivate($this->command, 'execute', [$this->consoleInput, $this->consoleOutput]);
}
}
diff --git a/tests/core/command/user/lastseentest.php b/tests/core/command/user/lastseentest.php
index 7eda6fb27ed..84805f5c072 100644
--- a/tests/core/command/user/lastseentest.php
+++ b/tests/core/command/user/lastseentest.php
@@ -82,7 +82,7 @@ class LastSeenTest extends TestCase {
->method('writeln')
->with($this->stringContains($expectedString));
- \Test_Helper::invokePrivate($this->command, 'execute', [$this->consoleInput, $this->consoleOutput]);
+ self::invokePrivate($this->command, 'execute', [$this->consoleInput, $this->consoleOutput]);
}
public function testInvalidUser() {
@@ -100,6 +100,6 @@ class LastSeenTest extends TestCase {
->method('writeln')
->with($this->stringContains('User does not exist'));
- \Test_Helper::invokePrivate($this->command, 'execute', [$this->consoleInput, $this->consoleOutput]);
+ self::invokePrivate($this->command, 'execute', [$this->consoleInput, $this->consoleOutput]);
}
}