summaryrefslogtreecommitdiffstats
path: root/apps/twofactor_backupcodes/tests/Integration
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-09-12 14:06:02 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-09-12 16:48:11 +0200
commit6ac2b8d83f95974d2ed4c0abf926cefbe8944cec (patch)
tree166db625d138008e32ba5e38fa5fda10ced7bc3e /apps/twofactor_backupcodes/tests/Integration
parent60c22dd074c6f81e37c764616e0cf659fb0e2d14 (diff)
downloadnextcloud-server-6ac2b8d83f95974d2ed4c0abf926cefbe8944cec.tar.gz
nextcloud-server-6ac2b8d83f95974d2ed4c0abf926cefbe8944cec.zip
Fix twofactor_backupcodes
Diffstat (limited to 'apps/twofactor_backupcodes/tests/Integration')
-rw-r--r--apps/twofactor_backupcodes/tests/Integration/Db/BackupCodeMapperTest.php5
-rw-r--r--apps/twofactor_backupcodes/tests/Integration/Service/BackupCodeStorageTest.php3
2 files changed, 3 insertions, 5 deletions
diff --git a/apps/twofactor_backupcodes/tests/Integration/Db/BackupCodeMapperTest.php b/apps/twofactor_backupcodes/tests/Integration/Db/BackupCodeMapperTest.php
index 5d7d71dd17a..bb97f929d7a 100644
--- a/apps/twofactor_backupcodes/tests/Integration/Db/BackupCodeMapperTest.php
+++ b/apps/twofactor_backupcodes/tests/Integration/Db/BackupCodeMapperTest.php
@@ -22,7 +22,6 @@
namespace OCA\TwoFactor_BackupCodes\Tests\Integration\Db;
-use OC;
use OCA\TwoFactor_BackupCodes\Db\BackupCode;
use OCA\TwoFactor_BackupCodes\Db\BackupCodeMapper;
use OCP\IDBConnection;
@@ -53,8 +52,8 @@ class BackupCodeMapperTest extends TestCase {
protected function setUp() {
parent::setUp();
- $this->db = OC::$server->getDatabaseConnection();
- $this->mapper = OC::$server->query(BackupCodeMapper::class);
+ $this->db = \OC::$server->getDatabaseConnection();
+ $this->mapper = \OC::$server->query(BackupCodeMapper::class);
$this->resetDB();
}
diff --git a/apps/twofactor_backupcodes/tests/Integration/Service/BackupCodeStorageTest.php b/apps/twofactor_backupcodes/tests/Integration/Service/BackupCodeStorageTest.php
index 5517af5ce0d..934c44fb0db 100644
--- a/apps/twofactor_backupcodes/tests/Integration/Service/BackupCodeStorageTest.php
+++ b/apps/twofactor_backupcodes/tests/Integration/Service/BackupCodeStorageTest.php
@@ -22,7 +22,6 @@
namespace OCA\TwoFactor_BackupCodes\Tests\Integration\Service;
-use OC;
use OCA\TwoFactor_BackupCodes\Service\BackupCodeStorage;
use Test\TestCase;
@@ -40,7 +39,7 @@ class BackupCodeStorageTest extends TestCase {
protected function setUp() {
parent::setUp();
- $this->storage = OC::$server->query(BackupCodeStorage::class);
+ $this->storage = \OC::$server->query(BackupCodeStorage::class);
}
public function testSimpleWorkFlow() {