Apply DB group annotation ...

This commit is contained in:
Thomas Müller 2015-11-03 01:52:41 +01:00
parent 678fe1b8f4
commit 3bb6dcea64
76 changed files with 401 additions and 42 deletions

View File

@ -8,6 +8,14 @@ namespace OCA\DAV\Tests\Unit\Connector\Sabre;
* later.
* See the COPYING-README file.
*/
/**
* Class CustomPropertiesBackend
*
* @group DB
*
* @package Tests\Connector\Sabre
*/
class CustomPropertiesBackend extends \Test\TestCase {
/**

View File

@ -14,6 +14,13 @@ use Test\HookHelper;
use OC\Files\Filesystem;
use OCP\Lock\ILockingProvider;
/**
* Class File
*
* @group DB
*
* @package Test\Connector\Sabre
*/
class File extends \Test\TestCase {
/**

View File

@ -22,6 +22,13 @@ namespace OCA\Files;
use \OCA\Files\Service\TagService;
/**
* Class TagServiceTest
*
* @group DB
*
* @package OCA\Files
*/
class TagServiceTest extends \Test\TestCase {
/**

View File

@ -22,10 +22,15 @@
*/
namespace OCA\Files_sharing\Tests;
use OCA\Files_sharing\Tests\TestCase;
class Activity extends \OCA\Files_Sharing\Tests\TestCase{
/**
* Class Activity
*
* @group DB
*
* @package OCA\Files_sharing\Tests
*/
class Activity extends \OCA\Files_Sharing\Tests\TestCase {
/**
* @var \OCA\Files_Sharing\Activity

View File

@ -31,6 +31,8 @@ use OCA\Files_sharing\Tests\TestCase;
/**
* Class Test_Files_Sharing_Api
*
* @group DB
*/
class Test_Files_Sharing_Api extends TestCase {

View File

@ -27,6 +27,13 @@ use OCA\Files_sharing\Tests\TestCase;
use OCP\AppFramework\Http;
use OCP\Share;
/**
* Class ShareesTest
*
* @group DB
*
* @package OCA\Files_Sharing\Tests\API
*/
class ShareesTest extends TestCase {
/** @var Sharees */
protected $sharees;

View File

@ -27,6 +27,8 @@ use OCA\Files_sharing\Tests\TestCase;
/**
* Class Test_Files_Sharing
*
* @group DB
*/
class Test_Files_Sharing_Backend extends TestCase {

View File

@ -47,6 +47,12 @@ use OCA\Files_sharing\Tests\TestCase;
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
/**
* Class Test_Files_Sharing_Cache
*
* @group DB
*/
class Test_Files_Sharing_Cache extends TestCase {
/**

View File

@ -26,6 +26,8 @@ use OCA\Files_Sharing\Tests\TestCase;
/**
* Class FilesSharingCapabilitiesTest
*
* @group DB
*/
class FilesSharingCapabilitiesTest extends \Test\TestCase {

View File

@ -23,6 +23,13 @@ namespace Test\BackgroundJob;
use OCA\Files_sharing\Lib\DeleteOrphanedSharesJob;
/**
* Class DeleteOrphanedSharesJobTest
*
* @group DB
*
* @package Test\BackgroundJob
*/
class DeleteOrphanedSharesJobTest extends \Test\TestCase {
/**

View File

@ -27,6 +27,13 @@ namespace OCA\Files_sharing\Tests;
use OC\Files\Filesystem;
use OC\Files\View;
/**
* Class EtagPropagation
*
* @group DB
*
* @package OCA\Files_sharing\Tests
*/
class EtagPropagation extends TestCase {
/**
* @var \OC\Files\View

View File

@ -23,6 +23,13 @@ namespace OCA\Files_Sharing\Tests;
use OCA\Files_Sharing\ExpireSharesJob;
/**
* Class ExpireSharesJobTest
*
* @group DB
*
* @package OCA\Files_Sharing\Tests
*/
class ExpireSharesJobTest extends \Test\TestCase {
/**

View File

@ -23,24 +23,11 @@ namespace OCA\Files_sharing\Tests\External;
use OCA\Files_sharing\Tests\TestCase;
/**
* ownCloud
* Class Cache
*
* @author Vincent Petry
* @copyright 2015 Vincent Petry <pvince81@owncloud.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
* License as published by the Free Software Foundation; either
* version 3 of the License, or any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU Affero General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
* @group DB
*
* @package OCA\Files_sharing\Tests\External
*/
class Cache extends TestCase {

View File

@ -28,6 +28,13 @@ use OCA\Files_Sharing\External\MountProvider;
use OCA\Files_Sharing\Tests\TestCase;
use Test\Traits\UserTrait;
/**
* Class ManagerTest
*
* @group DB
*
* @package OCA\Files_Sharing\Tests\External
*/
class ManagerTest extends TestCase {
use UserTrait;

View File

@ -24,26 +24,10 @@
use OCA\Files_sharing\Tests\TestCase;
/**
* ownCloud
*
* @author Bjoern Schiessle
* @copyright 2014 Bjoern Schiessle <schiessle@owncloud.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
* License as published by the Free Software Foundation; either
* version 3 of the License, or any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU Affero General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
* Class Test_Files_Sharing_Helper
*
* @group DB
*/
class Test_Files_Sharing_Helper extends TestCase {
/**

View File

@ -27,6 +27,13 @@ use OC\Files\View;
use OC\Lock\MemcacheLockingProvider;
use OCP\Lock\ILockingProvider;
/**
* Class Locking
*
* @group DB
*
* @package OCA\Files_sharing\Tests
*/
class Locking extends TestCase {
/**
* @var \Test\Util\User\Dummy

View File

@ -24,6 +24,11 @@
use OCA\Files_Sharing\Tests\TestCase;
use OCA\Files_Sharing\Migration;
/**
* Class MigrationTest
*
* @group DB
*/
class MigrationTest extends TestCase {
/**

View File

@ -26,7 +26,11 @@ use OC\Files\Cache\Cache;
use OC\Files\Storage\Storage;
use OC\Files\View;
/**
* Class Test_Files_Sharing_Permissions
*
* @group DB
*/
class Test_Files_Sharing_Permissions extends OCA\Files_sharing\Tests\TestCase {
/**

View File

@ -26,6 +26,8 @@ use OCA\Files_Sharing\Tests\TestCase;
/**
* Class Test_Files_Sharing_Api
*
* @group DB
*/
class Test_Files_Sharing_S2S_OCS_API extends TestCase {

View File

@ -27,6 +27,8 @@ use OCA\Files\Share;
/**
* Class Test_Files_Sharing
*
* @group DB
*/
class Test_Files_Sharing extends OCA\Files_sharing\Tests\TestCase {

View File

@ -27,6 +27,8 @@
/**
* Class Test_Files_Sharing_Api
*
* @group DB
*/
class Test_Files_Sharing_Mount extends OCA\Files_sharing\Tests\TestCase {

View File

@ -28,6 +28,8 @@ use OCA\Files\Share;
/**
* Class Test_Files_Sharing_Api
*
* @group DB
*/
class Test_Files_Sharing_Storage extends OCA\Files_sharing\Tests\TestCase {

View File

@ -24,6 +24,13 @@ namespace OCA\Files_sharing\Tests;
use OC\Files\View;
/**
* Class SizePropagation
*
* @group DB
*
* @package OCA\Files_sharing\Tests
*/
class SizePropagation extends TestCase {
public function testSizePropagationWhenOwnerChangesFile() {

View File

@ -36,6 +36,8 @@ use OCA\Files_Sharing\Appinfo\Application;
/**
* Class Test_Files_Sharing_Base
*
* @group DB
*
* Base class for sharing tests.
*/
abstract class TestCase extends \Test\TestCase {

View File

@ -26,6 +26,13 @@ namespace OCA\Files_sharing\Tests;
use OCA\Files\Share;
/**
* Class UnshareChildren
*
* @group DB
*
* @package OCA\Files_sharing\Tests
*/
class UnshareChildren extends TestCase {
protected $subsubfolder;

View File

@ -25,6 +25,8 @@
/**
* Class Test_Files_Sharing_Updater
*
* @group DB
*/
class Test_Files_Sharing_Updater extends OCA\Files_Sharing\Tests\TestCase {

View File

@ -25,6 +25,11 @@
*
*/
/**
* Class Test_Files_Sharing_Watcher
*
* @group DB
*/
class Test_Files_Sharing_Watcher extends OCA\Files_sharing\Tests\TestCase {
/**

View File

@ -8,6 +8,13 @@
namespace Test;
/**
* Class TestAllConfig
*
* @group DB
*
* @package Test
*/
class TestAllConfig extends \Test\TestCase {
/** @var \OCP\IDBConnection */

View File

@ -1,5 +1,4 @@
<?php
/**
* Copyright (c) 2012 Bernhard Posselt <dev@bernhard-posselt.com>
* Copyright (c) 2014 Vincent Petry <pvince81@owncloud.com>
@ -7,6 +6,12 @@
* later.
* See the COPYING-README file.
*/
/**
* Class Test_App
*
* @group DB
*/
class Test_App extends \Test\TestCase {
const TEST_USER1 = 'user1';

View File

@ -11,6 +11,13 @@ namespace Test\Lib;
use Test\TestCase;
/**
* Class AppConfig
*
* @group DB
*
* @package Test\Lib
*/
class AppConfig extends TestCase {
/** @var \OCP\IAppConfig */
protected $appConfig;

View File

@ -128,6 +128,7 @@ class AppTest extends \Test\TestCase {
protected function tearDown() {
rrmdir($this->appPath);
parent::tearDown();
}

View File

@ -9,6 +9,11 @@
use OC\Avatar;
/**
* Class Test_Avatar
*
* @group DB
*/
class Test_Avatar extends \Test\TestCase {
private static $trashBinStatus;

View File

@ -9,8 +9,16 @@
namespace Test\BackgroundJob;
use OCP\BackgroundJob\IJob;
use Test\TestCase;
class JobList extends \Test\TestCase {
/**
* Class JobList
*
* @group DB
*
* @package Test\BackgroundJob
*/
class JobList extends TestCase {
/**
* @var \OC\BackgroundJob\JobList
*/

View File

@ -22,6 +22,13 @@
namespace Test\Cache;
/**
* Class FileCache
*
* @group DB
*
* @package Test\Cache
*/
class FileCache extends \Test_Cache {
/**
* @var string

View File

@ -6,6 +6,11 @@
* See the COPYING-README file.
*/
/**
* Class Test_DB
*
* @group DB
*/
class Test_DB extends \Test\TestCase {
protected $backupGlobals = FALSE;

View File

@ -12,6 +12,13 @@ namespace Test\DB;
use Doctrine\DBAL\Platforms\SqlitePlatform;
use OC\DB\MDB2SchemaManager;
/**
* Class Connection
*
* @group DB
*
* @package Test\DB
*/
class Connection extends \Test\TestCase {
/**
* @var \OCP\IDBConnection

View File

@ -11,6 +11,13 @@ namespace Test\DB;
use Doctrine\DBAL\Platforms\OraclePlatform;
/**
* Class MDB2SchemaManager
*
* @group DB
*
* @package Test\DB
*/
class MDB2SchemaManager extends \Test\TestCase {
protected function tearDown() {

View File

@ -15,6 +15,13 @@ use \Doctrine\DBAL\Schema\Schema;
use \Doctrine\DBAL\Schema\SchemaConfig;
use OCP\IConfig;
/**
* Class Migrator
*
* @group DB
*
* @package Test\DB
*/
class Migrator extends \Test\TestCase {
/**
* @var \Doctrine\DBAL\Connection $connection

View File

@ -6,6 +6,11 @@
* See the COPYING-README file.
*/
/**
* Class TestMySqlMigration
*
* @group DB
*/
class TestMySqlMigration extends \Test\TestCase {
/** @var \Doctrine\DBAL\Connection */

View File

@ -24,6 +24,13 @@ namespace Test\DB\QueryBuilder;
use Doctrine\DBAL\Query\Expression\ExpressionBuilder as DoctrineExpressionBuilder;
use OC\DB\QueryBuilder\ExpressionBuilder;
/**
* Class ExpressionBuilderTest
*
* @group DB
*
* @package Test\DB\QueryBuilder
*/
class ExpressionBuilderTest extends \Test\TestCase {
/** @var ExpressionBuilder */
protected $expressionBuilder;

View File

@ -27,6 +27,13 @@ use OC\DB\QueryBuilder\Parameter;
use OC\DB\QueryBuilder\QueryBuilder;
use OCP\IDBConnection;
/**
* Class QueryBuilderTest
*
* @group DB
*
* @package Test\DB\QueryBuilder
*/
class QueryBuilderTest extends \Test\TestCase {
/** @var QueryBuilder */
protected $queryBuilder;

View File

@ -6,6 +6,11 @@
* See the COPYING-README file.
*/
/**
* Class TestSqliteMigration
*
* @group DB
*/
class TestSqliteMigration extends \Test\TestCase {
/** @var \Doctrine\DBAL\Connection */

View File

@ -9,6 +9,11 @@
use OCP\Security\ISecureRandom;
/**
* Class Test_DBSchema
*
* @group DB
*/
class Test_DBSchema extends \Test\TestCase {
protected $schema_file = 'static://test_db_scheme';
protected $schema_file2 = 'static://test_db_scheme2';

View File

@ -16,6 +16,13 @@ class LongId extends \OC\Files\Storage\Temporary {
}
}
/**
* Class Cache
*
* @group DB
*
* @package Test\Files\Cache
*/
class Cache extends \Test\TestCase {
/**
* @var \OC\Files\Storage\Temporary $storage ;

View File

@ -12,6 +12,13 @@ use OC\Files\Filesystem;
use OC\Files\Storage\Temporary;
use OC\Files\View;
/**
* Class ChangePropagator
*
* @group DB
*
* @package Test\Files\Cache
*/
class ChangePropagator extends \Test\TestCase {
/**
* @var \OC\Files\Cache\ChangePropagator

View File

@ -43,6 +43,13 @@ class DummyUser extends \OC\User\User {
}
}
/**
* Class HomeCache
*
* @group DB
*
* @package Test\Files\Cache
*/
class HomeCache extends \Test\TestCase {
/**
* @var \OC\Files\Storage\Home $storage

View File

@ -8,6 +8,13 @@
namespace Test\Files\Cache;
/**
* Class Scanner
*
* @group DB
*
* @package Test\Files\Cache
*/
class Scanner extends \Test\TestCase {
/**
* @var \OC\Files\Storage\Storage $storage

View File

@ -12,6 +12,13 @@ use OC\Files\Filesystem;
use OC\Files\Storage\Temporary;
use OC\Files\View;
/**
* Class Updater
*
* @group DB
*
* @package Test\Files\Cache
*/
class Updater extends \Test\TestCase {
/**
* @var \OC\Files\Storage\Storage

View File

@ -12,6 +12,13 @@ use \OC\Files\Filesystem as Filesystem;
use OC\Files\Storage\Temporary;
use OC\Files\View;
/**
* Class UpdaterLegacy
*
* @group DB
*
* @package Test\Files\Cache
*/
class UpdaterLegacy extends \Test\TestCase {
/**
* @var \OC\Files\Storage\Storage $storage

View File

@ -8,6 +8,13 @@
namespace Test\Files\Cache;
/**
* Class Watcher
*
* @group DB
*
* @package Test\Files\Cache
*/
class Watcher extends \Test\TestCase {
/**

View File

@ -11,6 +11,13 @@ namespace Test\Files;
use OC\Files\Filesystem;
use OCP\Share;
/**
* Class EtagTest
*
* @group DB
*
* @package Test\Files
*/
class EtagTest extends \Test\TestCase {
private $datadir;

View File

@ -51,6 +51,13 @@ class DummyMountProvider implements IMountProvider {
}
}
/**
* Class Filesystem
*
* @group DB
*
* @package Test\Files
*/
class Filesystem extends \Test\TestCase {
const TEST_FILESYSTEM_USER1 = "test-filesystem-user1";

View File

@ -13,6 +13,13 @@ use OC\Files\Storage\Temporary;
use OC\Files\View;
use OC\User\User;
/**
* Class IntegrationTests
*
* @group DB
*
* @package Test\Files\Node
*/
class IntegrationTests extends \Test\TestCase {
/**
* @var \OC\Files\Node\Root $root

View File

@ -23,6 +23,13 @@ namespace OCA\ObjectStore\Tests\Unit;
use OC\Files\ObjectStore\ObjectStoreStorage;
use OC\Files\ObjectStore\Swift as ObjectStoreToTest;
/**
* Class Swift
*
* @group DB
*
* @package OCA\ObjectStore\Tests\Unit
*/
class Swift extends \Test\Files\Storage\Storage {
/**

View File

@ -40,6 +40,13 @@ class TestScanner extends \OC\Files\Utils\Scanner {
}
}
/**
* Class Scanner
*
* @group DB
*
* @package Test\Files\Utils
*/
class Scanner extends \Test\TestCase {
/**
* @var \Test\Util\User\Dummy

View File

@ -40,6 +40,13 @@ class TemporaryNoLocal extends \OC\Files\Storage\Temporary {
}
}
/**
* Class View
*
* @group DB
*
* @package Test\Files
*/
class View extends \Test\TestCase {
/**
* @var \OC\Files\Storage\Storage[] $storages

View File

@ -20,6 +20,11 @@
*
*/
/**
* Class Test_Group_Backend
*
* @group DB
*/
abstract class Test_Group_Backend extends \Test\TestCase {
/**
* @var OC_Group_Backend $backend

View File

@ -20,6 +20,11 @@
*
*/
/**
* Class Test_Group_Database
*
* @group DB
*/
class Test_Group_Database extends Test_Group_Backend {
private $groups=array();

View File

@ -20,6 +20,11 @@
*
*/
/**
* Class Test_Group_Dummy
*
* @group DB
*/
class Test_Group_Dummy extends Test_Group_Backend {
protected function setUp() {
parent::setUp();

View File

@ -23,6 +23,13 @@ namespace Test\Lock;
use OCP\Lock\ILockingProvider;
/**
* Class DBLockingProvider
*
* @group DB
*
* @package Test\Lock
*/
class DBLockingProvider extends LockingProvider {
/**
* @var \OC\Lock\DBLockingProvider

View File

@ -11,6 +11,8 @@ namespace Test\Repair;
/**
* Tests for the cleaning the tags tables
*
* @group DB
*
* @see \OC\Repair\CleanTags
*/
class CleanTags extends \Test\TestCase {

View File

@ -13,6 +13,8 @@ use OCP\BackgroundJob\IJobList;
/**
* Tests for the dropping old tables
*
* @group DB
*
* @see \OC\Repair\DropOldTables
*/
class DropOldJobs extends \Test\TestCase {

View File

@ -11,6 +11,8 @@ namespace Test\Repair;
/**
* Tests for the dropping old tables
*
* @group DB
*
* @see \OC\Repair\DropOldTables
*/
class DropOldTables extends \Test\TestCase {

View File

@ -11,6 +11,13 @@ namespace Test\Repair;
use OC\Repair\OldGroupMembershipShares;
use OC\Share\Constants;
/**
* Class OldGroupMembershipSharesTest
*
* @group DB
*
* @package Test\Repair
*/
class OldGroupMembershipSharesTest extends \Test\TestCase {
/** @var OldGroupMembershipShares */

View File

@ -24,6 +24,13 @@ namespace Test\Repair;
use OC\Repair\RemoveGetETagEntries;
use Test\TestCase;
/**
* Class RemoveGetETagEntriesTest
*
* @group DB
*
* @package Test\Repair
*/
class RemoveGetETagEntriesTest extends TestCase {
/** @var \OCP\IDBConnection */
protected $connection;

View File

@ -19,6 +19,8 @@ class TestCollationRepair extends \OC\Repair\Collation {
/**
* Tests for the converting of MySQL tables to InnoDB engine
*
* @group DB
*
* @see \OC\Repair\RepairMimeTypes
*/
class TestRepairCollation extends \Test\TestCase {

View File

@ -10,6 +10,8 @@ namespace Test\Repair;
/**
* Tests for the converting of MySQL tables to InnoDB engine
*
* @group DB
*
* @see \OC\Repair\RepairMimeTypes
*/
class RepairInnoDB extends \Test\TestCase {

View File

@ -16,6 +16,8 @@ use Test\TestCase;
/**
* Tests for repairing invalid shares
*
* @group DB
*
* @see \OC\Repair\RepairInvalidShares
*/
class RepairInvalidSharesTest extends TestCase {

View File

@ -15,6 +15,8 @@ use Test\TestCase;
/**
* Tests for the converting of legacy storages to home storages.
*
* @group DB
*
* @see \OC\Repair\RepairLegacyStorages
*/
class RepairLegacyStorages extends TestCase {

View File

@ -11,6 +11,8 @@ namespace Test\Repair;
/**
* Tests for the converting of legacy storages to home storages.
*
* @group DB
*
* @see \OC\Repair\RepairMimeTypes
*/
class RepairMimeTypes extends \Test\TestCase {

View File

@ -10,6 +10,8 @@ namespace Test\Repair;
/**
* Tests for fixing the SQLite id recycling
*
* @group DB
*/
class RepairSqliteAutoincrement extends \Test\TestCase {

View File

@ -8,6 +8,11 @@
use \OC\Security\CertificateManager;
/**
* Class CertificateManagerTest
*
* @group DB
*/
class CertificateManagerTest extends \Test\TestCase {
/** @var CertificateManager */

View File

@ -25,6 +25,13 @@ namespace OC\Tests\Share;
use Test\TestCase;
/**
* Class HookTests
*
* @group DB
*
* @package OC\Tests\Share
*/
class HookTests extends TestCase {
protected function setUp() {

View File

@ -19,6 +19,11 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* Class Test_Share
*
* @group DB
*/
class Test_Share extends \Test\TestCase {
protected $itemType;

View File

@ -20,12 +20,17 @@
*
*/
/**
* Class Test_Tags
*
* @group DB
*/
class Test_Tags extends \Test\TestCase {
protected $objectType;
/** @var \OC\IUser */
/** @var \OCP\IUser */
protected $user;
/** @var \OC\IUserSession */
/** @var \OCP\IUserSession */
protected $userSession;
protected $backupGlobals = FALSE;
/** @var \OC\Tagging\TagMapper */

View File

@ -20,6 +20,11 @@
*
*/
/**
* Class Test_User_Database
*
* @group DB
*/
class Test_User_Database extends Test_User_Backend {
/** @var array */
private $users;