summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-11-20 11:27:11 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-11-30 10:55:06 +0100
commit757aa45db7b884c28c118e28b7cd517059c61a32 (patch)
tree815796cfa49eea7d0e0827f222fc46b584cbb8a4 /tests
parente265e982bf9f2572ef24d84dd777f48fff8993b4 (diff)
downloadnextcloud-server-757aa45db7b884c28c118e28b7cd517059c61a32.tar.gz
nextcloud-server-757aa45db7b884c28c118e28b7cd517059c61a32.zip
Adding more DB groups to test suits
Adding more DB groups to test suits
Diffstat (limited to 'tests')
-rw-r--r--tests/core/avatar/avatarcontrollertest.php2
-rw-r--r--tests/lib/encryption/decryptalltest.php7
-rw-r--r--tests/lib/files/cache/wrapper/cachejail.php7
-rw-r--r--tests/lib/files/cache/wrapper/cachepermissionsmask.php7
-rw-r--r--tests/lib/files/node/folder.php7
-rw-r--r--tests/lib/files/node/hookconnector.php7
-rw-r--r--tests/lib/files/storage/commontest.php7
-rw-r--r--tests/lib/files/storage/copydirectory.php7
-rw-r--r--tests/lib/files/storage/home.php7
-rw-r--r--tests/lib/files/storage/local.php7
-rw-r--r--tests/lib/files/storage/wrapper/quota.php7
-rw-r--r--tests/lib/helperstorage.php3
-rw-r--r--tests/lib/log/owncloud.php9
-rw-r--r--tests/lib/ocs/privatedata.php5
-rw-r--r--tests/lib/preview.php7
-rw-r--r--tests/lib/preview/bitmap.php7
-rw-r--r--tests/lib/preview/image.php7
-rw-r--r--tests/lib/preview/mp3.php7
-rw-r--r--tests/lib/preview/svg.php7
-rw-r--r--tests/lib/preview/txt.php7
-rw-r--r--tests/lib/server.php7
-rw-r--r--tests/lib/streamwrappers.php5
22 files changed, 140 insertions, 3 deletions
diff --git a/tests/core/avatar/avatarcontrollertest.php b/tests/core/avatar/avatarcontrollertest.php
index 948a432d2ed..efe41763ff7 100644
--- a/tests/core/avatar/avatarcontrollertest.php
+++ b/tests/core/avatar/avatarcontrollertest.php
@@ -44,6 +44,8 @@ function is_uploaded_file($filename) {
/**
* Class AvatarControllerTest
*
+ * @group DB
+ *
* @package OC\Core\Avatar
*/
class AvatarControllerTest extends \Test\TestCase {
diff --git a/tests/lib/encryption/decryptalltest.php b/tests/lib/encryption/decryptalltest.php
index ce5bcf1e5ae..85fbe3e0ed9 100644
--- a/tests/lib/encryption/decryptalltest.php
+++ b/tests/lib/encryption/decryptalltest.php
@@ -30,6 +30,13 @@ use OC\Files\View;
use OCP\IUserManager;
use Test\TestCase;
+/**
+ * Class DecryptAllTest
+ *
+ * @group DB
+ *
+ * @package Test\Encryption
+ */
class DecryptAllTest extends TestCase {
/** @var \PHPUnit_Framework_MockObject_MockObject | IUserManager */
diff --git a/tests/lib/files/cache/wrapper/cachejail.php b/tests/lib/files/cache/wrapper/cachejail.php
index 13f3dc8858e..9ddf3e9c61c 100644
--- a/tests/lib/files/cache/wrapper/cachejail.php
+++ b/tests/lib/files/cache/wrapper/cachejail.php
@@ -10,6 +10,13 @@ namespace Test\Files\Cache\Wrapper;
use Test\Files\Cache\Cache;
+/**
+ * Class CacheJail
+ *
+ * @group DB
+ *
+ * @package Test\Files\Cache\Wrapper
+ */
class CacheJail extends Cache {
/**
* @var \OC\Files\Cache\Cache $sourceCache
diff --git a/tests/lib/files/cache/wrapper/cachepermissionsmask.php b/tests/lib/files/cache/wrapper/cachepermissionsmask.php
index 72fd22741d3..a4cc7edba37 100644
--- a/tests/lib/files/cache/wrapper/cachepermissionsmask.php
+++ b/tests/lib/files/cache/wrapper/cachepermissionsmask.php
@@ -11,6 +11,13 @@ namespace Test\Files\Cache\Wrapper;
use OCP\Constants;
use Test\Files\Cache\Cache;
+/**
+ * Class CachePermissionsMask
+ *
+ * @group DB
+ *
+ * @package Test\Files\Cache\Wrapper
+ */
class CachePermissionsMask extends Cache {
/**
* @var \OC\Files\Cache\Cache $sourceCache
diff --git a/tests/lib/files/node/folder.php b/tests/lib/files/node/folder.php
index 8c98256575e..2c9339bb6dc 100644
--- a/tests/lib/files/node/folder.php
+++ b/tests/lib/files/node/folder.php
@@ -16,6 +16,13 @@ use OCP\Files\NotFoundException;
use OCP\Files\NotPermittedException;
use OC\Files\View;
+/**
+ * Class Folder
+ *
+ * @group DB
+ *
+ * @package Test\Files\Node
+ */
class Folder extends \Test\TestCase {
private $user;
diff --git a/tests/lib/files/node/hookconnector.php b/tests/lib/files/node/hookconnector.php
index 10566cf5fb1..646e3952a38 100644
--- a/tests/lib/files/node/hookconnector.php
+++ b/tests/lib/files/node/hookconnector.php
@@ -17,6 +17,13 @@ use Test\TestCase;
use Test\Traits\MountProviderTrait;
use Test\Traits\UserTrait;
+/**
+ * Class HookConnector
+ *
+ * @group DB
+ *
+ * @package Test\Files\Node
+ */
class HookConnector extends TestCase {
use UserTrait;
use MountProviderTrait;
diff --git a/tests/lib/files/storage/commontest.php b/tests/lib/files/storage/commontest.php
index 2b70dc8713e..bbe6f2a73e2 100644
--- a/tests/lib/files/storage/commontest.php
+++ b/tests/lib/files/storage/commontest.php
@@ -22,6 +22,13 @@
namespace Test\Files\Storage;
+/**
+ * Class CommonTest
+ *
+ * @group DB
+ *
+ * @package Test\Files\Storage
+ */
class CommonTest extends Storage {
/**
* @var string tmpDir
diff --git a/tests/lib/files/storage/copydirectory.php b/tests/lib/files/storage/copydirectory.php
index 3338747f49b..bc066268cda 100644
--- a/tests/lib/files/storage/copydirectory.php
+++ b/tests/lib/files/storage/copydirectory.php
@@ -36,6 +36,13 @@ class CopyDirectoryStorage extends StorageNoRecursiveCopy {
use \OC\Files\Storage\PolyFill\CopyDirectory;
}
+/**
+ * Class CopyDirectory
+ *
+ * @group DB
+ *
+ * @package Test\Files\Storage
+ */
class CopyDirectory extends Storage {
protected function setUp() {
diff --git a/tests/lib/files/storage/home.php b/tests/lib/files/storage/home.php
index b0670a22892..a51912ca1b2 100644
--- a/tests/lib/files/storage/home.php
+++ b/tests/lib/files/storage/home.php
@@ -47,6 +47,13 @@ class DummyUser extends User {
}
}
+/**
+ * Class Home
+ *
+ * @group DB
+ *
+ * @package Test\Files\Storage
+ */
class Home extends Storage {
/**
* @var string tmpDir
diff --git a/tests/lib/files/storage/local.php b/tests/lib/files/storage/local.php
index d2b27117c3b..36267dc6605 100644
--- a/tests/lib/files/storage/local.php
+++ b/tests/lib/files/storage/local.php
@@ -22,6 +22,13 @@
namespace Test\Files\Storage;
+/**
+ * Class Local
+ *
+ * @group DB
+ *
+ * @package Test\Files\Storage
+ */
class Local extends Storage {
/**
* @var string tmpDir
diff --git a/tests/lib/files/storage/wrapper/quota.php b/tests/lib/files/storage/wrapper/quota.php
index 441f3a39d32..b0a06b0d898 100644
--- a/tests/lib/files/storage/wrapper/quota.php
+++ b/tests/lib/files/storage/wrapper/quota.php
@@ -11,6 +11,13 @@ namespace Test\Files\Storage\Wrapper;
//ensure the constants are loaded
\OC::$loader->load('\OC\Files\Filesystem');
+/**
+ * Class Quota
+ *
+ * @group DB
+ *
+ * @package Test\Files\Storage\Wrapper
+ */
class Quota extends \Test\Files\Storage\Storage {
/**
* @var string tmpDir
diff --git a/tests/lib/helperstorage.php b/tests/lib/helperstorage.php
index 8b5f41fc94c..d41bc68a7b1 100644
--- a/tests/lib/helperstorage.php
+++ b/tests/lib/helperstorage.php
@@ -8,8 +8,9 @@
/**
* Test the storage functions of OC_Helper
+ *
+ * @group DB
*/
-
class Test_Helper_Storage extends \Test\TestCase {
/** @var string */
private $user;
diff --git a/tests/lib/log/owncloud.php b/tests/lib/log/owncloud.php
index d977583612b..8cc6aa9d57a 100644
--- a/tests/lib/log/owncloud.php
+++ b/tests/lib/log/owncloud.php
@@ -15,6 +15,11 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
+/**
+ * Class Test_Log_Owncloud
+ *
+ * @group DB
+ */
class Test_Log_Owncloud extends Test\TestCase
{
private $restore_logfile;
@@ -22,8 +27,8 @@ class Test_Log_Owncloud extends Test\TestCase
protected function setUp() {
parent::setUp();
- $restore_logfile = OC_Config::getValue("logfile");
- $restore_logdateformat = OC_Config::getValue('logdateformat');
+ $this->restore_logfile = OC_Config::getValue("logfile");
+ $this->restore_logdateformat = OC_Config::getValue('logdateformat');
OC_Config::setValue("logfile", OC_Config::getValue('datadirectory') . "/logtest");
OC_Log_Owncloud::init();
diff --git a/tests/lib/ocs/privatedata.php b/tests/lib/ocs/privatedata.php
index a9300f5beac..ce153bf07d6 100644
--- a/tests/lib/ocs/privatedata.php
+++ b/tests/lib/ocs/privatedata.php
@@ -20,6 +20,11 @@
*
*/
+/**
+ * Class Test_OC_OCS_Privatedata
+ *
+ * @group DB
+ */
class Test_OC_OCS_Privatedata extends \Test\TestCase {
private $appKey;
diff --git a/tests/lib/preview.php b/tests/lib/preview.php
index e4c599c66cf..bc6f849cbe8 100644
--- a/tests/lib/preview.php
+++ b/tests/lib/preview.php
@@ -28,6 +28,13 @@ use OC\Files\View;
use Test\Traits\MountProviderTrait;
use Test\Traits\UserTrait;
+/**
+ * Class Preview
+ *
+ * @group DB
+ *
+ * @package Test
+ */
class Preview extends TestCase {
use UserTrait;
use MountProviderTrait;
diff --git a/tests/lib/preview/bitmap.php b/tests/lib/preview/bitmap.php
index 49112852e29..1e135ceb083 100644
--- a/tests/lib/preview/bitmap.php
+++ b/tests/lib/preview/bitmap.php
@@ -21,6 +21,13 @@
namespace Test\Preview;
+/**
+ * Class Bitmap
+ *
+ * @group DB
+ *
+ * @package Test\Preview
+ */
class Bitmap extends Provider {
public function setUp() {
diff --git a/tests/lib/preview/image.php b/tests/lib/preview/image.php
index af46f4e4a66..6c82ff85723 100644
--- a/tests/lib/preview/image.php
+++ b/tests/lib/preview/image.php
@@ -21,6 +21,13 @@
namespace Test\Preview;
+/**
+ * Class Image
+ *
+ * @group DB
+ *
+ * @package Test\Preview
+ */
class Image extends Provider {
public function setUp() {
diff --git a/tests/lib/preview/mp3.php b/tests/lib/preview/mp3.php
index ac3ab07a2bd..f6875a88ebd 100644
--- a/tests/lib/preview/mp3.php
+++ b/tests/lib/preview/mp3.php
@@ -21,6 +21,13 @@
namespace Test\Preview;
+/**
+ * Class MP3
+ *
+ * @group DB
+ *
+ * @package Test\Preview
+ */
class MP3 extends Provider {
public function setUp() {
diff --git a/tests/lib/preview/svg.php b/tests/lib/preview/svg.php
index 768569c72ed..ef5f4cff80f 100644
--- a/tests/lib/preview/svg.php
+++ b/tests/lib/preview/svg.php
@@ -21,6 +21,13 @@
namespace Test\Preview;
+/**
+ * Class SVG
+ *
+ * @group DB
+ *
+ * @package Test\Preview
+ */
class SVG extends Provider {
public function setUp() {
diff --git a/tests/lib/preview/txt.php b/tests/lib/preview/txt.php
index 8bda86f25e3..219b850be95 100644
--- a/tests/lib/preview/txt.php
+++ b/tests/lib/preview/txt.php
@@ -21,6 +21,13 @@
namespace Test\Preview;
+/**
+ * Class TXT
+ *
+ * @group DB
+ *
+ * @package Test\Preview
+ */
class TXT extends Provider {
public function setUp() {
diff --git a/tests/lib/server.php b/tests/lib/server.php
index 96a476bd4d1..b72bef82036 100644
--- a/tests/lib/server.php
+++ b/tests/lib/server.php
@@ -24,6 +24,13 @@
namespace Test;
+/**
+ * Class Server
+ *
+ * @group DB
+ *
+ * @package Test
+ */
class Server extends \Test\TestCase {
/** @var \OC\Server */
protected $server;
diff --git a/tests/lib/streamwrappers.php b/tests/lib/streamwrappers.php
index 6216c5a4be8..9b097535280 100644
--- a/tests/lib/streamwrappers.php
+++ b/tests/lib/streamwrappers.php
@@ -20,6 +20,11 @@
*
*/
+/**
+ * Class Test_StreamWrappers
+ *
+ * @group DB
+ */
class Test_StreamWrappers extends \Test\TestCase {
private static $trashBinStatus;