]> source.dussan.org Git - nextcloud-server.git/commitdiff
enable encryption unit test execution
authorThomas Müller <thomas.mueller@tmit.eu>
Thu, 26 Mar 2015 10:46:32 +0000 (11:46 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 7 Apr 2015 11:30:27 +0000 (13:30 +0200)
apps/encryption/tests/lib/MigratorTest.php [deleted file]
apps/encryption/tests/lib/RequirementsCheckerTest.php [deleted file]
tests/enable_all.php

diff --git a/apps/encryption/tests/lib/MigratorTest.php b/apps/encryption/tests/lib/MigratorTest.php
deleted file mode 100644 (file)
index 0d30b98..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-/**
- * @author Clark Tomlinson  <fallen013@gmail.com>
- * @since 3/9/15, 2:56 PM
- * @link http:/www.clarkt.com
- * @copyright Clark Tomlinson © 2015
- *
- */
-
-namespace OCA\Encryption\Tests;
-
-
-use OCA\Encryption\Migrator;
-use Test\TestCase;
-
-class MigratorTest extends TestCase {
-
-       /**
-        * @var Migrator
-        */
-       private $instance;
-
-       /**
-        *
-        */
-       public function testGetStatus() {
-               $this->assertFalse($this->instance->getStatus('admin'));
-       }
-
-       /**
-        *
-        */
-       public function testBeginMigration() {
-               $this->assertTrue($this->instance->beginMigration());
-       }
-
-       /**
-        *
-        */
-       public function testSetMigrationStatus() {
-               $this->assertTrue(\Test_Helper::invokePrivate($this->instance,
-                       'setMigrationStatus',
-                       ['0', '-1'])
-               );
-       }
-
-       /**
-        *
-        */
-       protected function setUp() {
-               parent::setUp();
-
-               $cryptMock = $this->getMockBuilder('OCA\Encryption\Crypto\Crypt')->disableOriginalConstructor()->getMock();
-               $this->instance = new Migrator($this->getMock('OCP\IConfig'),
-                       $this->getMock('OCP\IUserManager'),
-                       $this->getMock('OCP\ILogger'),
-                       $cryptMock);
-       }
-
-
-}
diff --git a/apps/encryption/tests/lib/RequirementsCheckerTest.php b/apps/encryption/tests/lib/RequirementsCheckerTest.php
deleted file mode 100644 (file)
index 97ddd76..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * @author Clark Tomlinson  <fallen013@gmail.com>
- * @since 3/6/15, 10:36 AM
- * @link http:/www.clarkt.com
- * @copyright Clark Tomlinson © 2015
- *
- */
-
-namespace OCA\Encryption\Tests;
-
-
-use OCA\Encryption\RequirementsChecker;
-use Test\TestCase;
-
-class RequirementsCheckerTest extends TestCase {
-       /**
-        * @var RequirementsChecker
-        */
-       private $instance;
-
-       /**
-        *
-        */
-       protected function setUp() {
-               parent::setUp();
-               $log = $this->getMock('OCP\ILogger');
-               $crypt = $this->getMockBuilder('OCA\Encryption\Crypt')
-                       ->disableOriginalConstructor()
-                       ->getMock();
-               $crypt
-               ->method('getOpenSSLPkey')
-               ->will($this->returnValue(true));
-               $this->instance = new RequirementsChecker($crypt, $log);
-       }
-
-       /**
-        *
-        */
-       public function testCanCheckConfigration() {
-               $this->assertTrue($this->instance->checkConfiguration());
-       }
-
-       /**
-        *
-        */
-       public function testCanCheckRequiredExtensions() {
-               $this->assertTrue($this->instance->checkExtensions());
-       }
-
-}
index e9b538713a5b67fd0a076150ef42320d01709714..61c94e6effe25a0dc462ad345c28c6b3ff89c5d0 100644 (file)
@@ -19,6 +19,7 @@ function enableApp($app) {
 enableApp('files_sharing');
 enableApp('files_trashbin');
 enableApp('files_encryption');
+enableApp('encryption');
 enableApp('user_ldap');
 enableApp('files_versions');
 enableApp('provisioning_api');