Merge pull request #20248 from owncloud/use-phpunit-groups-to-run-database-code-in-isolation
Use phpunit groups to run database code in isolation
This commit is contained in:
commit
fc21aa6c41
|
@ -1,6 +1,8 @@
|
|||
<?php
|
||||
|
||||
define('PHPUNIT_RUN', 1);
|
||||
if (!defined('PHPUNIT_RUN')) {
|
||||
define('PHPUNIT_RUN', 1);
|
||||
}
|
||||
|
||||
require_once __DIR__.'/../../../../lib/base.php';
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
|
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
|
|
@ -41,6 +41,13 @@ class TestDoubleFileView extends \OC\Files\View {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Class ObjectTree
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package OCA\DAV\Tests\Unit\Connector\Sabre
|
||||
*/
|
||||
class ObjectTree extends \Test\TestCase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -11,6 +11,13 @@ namespace OCA\DAV\Tests\Unit\Connector\Sabre\RequestTest;
|
|||
use OCP\AppFramework\Http;
|
||||
use OCP\Lock\ILockingProvider;
|
||||
|
||||
/**
|
||||
* Class DownloadTest
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package OCA\DAV\Tests\Unit\Connector\Sabre\RequestTest
|
||||
*/
|
||||
class DownloadTest extends RequestTest {
|
||||
public function testDownload() {
|
||||
$user = $this->getUniqueID();
|
||||
|
|
|
@ -11,6 +11,13 @@ namespace OCA\DAV\Tests\Unit\Connector\Sabre\RequestTest;
|
|||
use OC\Files\View;
|
||||
use Test\Traits\EncryptionTrait;
|
||||
|
||||
/**
|
||||
* Class EncryptionUploadTest
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package OCA\DAV\Tests\Unit\Connector\Sabre\RequestTest
|
||||
*/
|
||||
class EncryptionUploadTest extends UploadTest {
|
||||
use EncryptionTrait;
|
||||
|
||||
|
|
|
@ -12,6 +12,13 @@ use OC\Connector\Sabre\Exception\FileLocked;
|
|||
use OCP\AppFramework\Http;
|
||||
use OCP\Lock\ILockingProvider;
|
||||
|
||||
/**
|
||||
* Class UploadTest
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package OCA\DAV\Tests\Unit\Connector\Sabre\RequestTest
|
||||
*/
|
||||
class UploadTest extends RequestTest {
|
||||
public function testBasicUpload() {
|
||||
$user = $this->getUniqueID();
|
||||
|
|
|
@ -34,6 +34,13 @@ use OCP\Http\Client\IResponse;
|
|||
use OCP\ILogger;
|
||||
use OCP\IURLGenerator;
|
||||
|
||||
/**
|
||||
* Class GetSharedSecretTest
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package OCA\Federation\Tests\BackgroundJob
|
||||
*/
|
||||
class GetSharedSecretTest extends TestCase {
|
||||
|
||||
/** @var \PHPUnit_Framework_MockObject_MockObject | IClient */
|
||||
|
|
|
@ -25,6 +25,13 @@ namespace OCA\Files\Tests\Command;
|
|||
use OCA\Files\Command\DeleteOrphanedFiles;
|
||||
use OCP\Files\StorageNotAvailableException;
|
||||
|
||||
/**
|
||||
* Class DeleteOrphanedFilesTest
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package OCA\Files\Tests\Command
|
||||
*/
|
||||
class DeleteOrphanedFilesTest extends \Test\TestCase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -22,6 +22,13 @@ namespace OCA\Files;
|
|||
|
||||
use \OCA\Files\Service\TagService;
|
||||
|
||||
/**
|
||||
* Class TagServiceTest
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package OCA\Files
|
||||
*/
|
||||
class TagServiceTest extends \Test\TestCase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -25,6 +25,13 @@
|
|||
|
||||
namespace Test\Files\Storage;
|
||||
|
||||
/**
|
||||
* Class AmazonS3Migration
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package Test\Files\Storage
|
||||
*/
|
||||
class AmazonS3Migration extends \Test\TestCase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -25,6 +25,13 @@
|
|||
|
||||
namespace Test\Files\Storage;
|
||||
|
||||
/**
|
||||
* Class AmazonS3
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package Test\Files\Storage
|
||||
*/
|
||||
class AmazonS3 extends Storage {
|
||||
|
||||
private $config;
|
||||
|
|
|
@ -25,6 +25,13 @@
|
|||
|
||||
namespace Test\Files\Storage;
|
||||
|
||||
/**
|
||||
* Class Dropbox
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package Test\Files\Storage
|
||||
*/
|
||||
class Dropbox extends Storage {
|
||||
private $config;
|
||||
|
||||
|
|
|
@ -26,6 +26,13 @@
|
|||
|
||||
namespace Test\Files\Storage;
|
||||
|
||||
/**
|
||||
* Class FTP
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package Test\Files\Storage
|
||||
*/
|
||||
class FTP extends Storage {
|
||||
private $config;
|
||||
|
||||
|
|
|
@ -28,6 +28,13 @@ namespace Test\Files\Storage;
|
|||
|
||||
require_once 'files_external/lib/google.php';
|
||||
|
||||
/**
|
||||
* Class Google
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package Test\Files\Storage
|
||||
*/
|
||||
class Google extends Storage {
|
||||
|
||||
private $config;
|
||||
|
|
|
@ -23,6 +23,13 @@
|
|||
|
||||
namespace Test\Files\Storage;
|
||||
|
||||
/**
|
||||
* Class OwnCloud
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package Test\Files\Storage
|
||||
*/
|
||||
class OwnCloud extends Storage {
|
||||
|
||||
private $config;
|
||||
|
|
|
@ -25,6 +25,13 @@
|
|||
|
||||
namespace Test\Files\Storage;
|
||||
|
||||
/**
|
||||
* Class SFTP
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package Test\Files\Storage
|
||||
*/
|
||||
class SFTP extends Storage {
|
||||
/**
|
||||
* @var \OC\Files\Storage\SFTP instance
|
||||
|
|
|
@ -23,6 +23,13 @@
|
|||
|
||||
namespace Test\Files\Storage;
|
||||
|
||||
/**
|
||||
* Class SFTP_Key
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package Test\Files\Storage
|
||||
*/
|
||||
class SFTP_Key extends Storage {
|
||||
private $config;
|
||||
|
||||
|
|
|
@ -24,6 +24,13 @@
|
|||
|
||||
namespace Test\Files\Storage;
|
||||
|
||||
/**
|
||||
* Class SMB
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package Test\Files\Storage
|
||||
*/
|
||||
class SMB extends Storage {
|
||||
|
||||
protected function setUp() {
|
||||
|
|
|
@ -25,6 +25,13 @@
|
|||
|
||||
namespace Test\Files\Storage;
|
||||
|
||||
/**
|
||||
* Class Swift
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package Test\Files\Storage
|
||||
*/
|
||||
class Swift extends Storage {
|
||||
|
||||
private $config;
|
||||
|
|
|
@ -24,6 +24,13 @@
|
|||
|
||||
namespace Test\Files\Storage;
|
||||
|
||||
/**
|
||||
* Class DAV
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package Test\Files\Storage
|
||||
*/
|
||||
class DAV extends Storage {
|
||||
|
||||
protected function setUp() {
|
||||
|
|
|
@ -26,6 +26,13 @@ namespace Tests\Files_External;
|
|||
use OC\Files\Filesystem;
|
||||
use OC\User\User;
|
||||
|
||||
/**
|
||||
* Class EtagPropagator
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package Tests\Files_External
|
||||
*/
|
||||
class EtagPropagator extends \Test\TestCase {
|
||||
protected function getUser() {
|
||||
return new User($this->getUniqueID(), null);
|
||||
|
|
|
@ -24,6 +24,13 @@
|
|||
|
||||
namespace Test\Files\Storage;
|
||||
|
||||
/**
|
||||
* Class OwnCloudFunctions
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package Test\Files\Storage
|
||||
*/
|
||||
class OwnCloudFunctions extends \Test\TestCase {
|
||||
|
||||
function configUrlProvider() {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -31,6 +31,8 @@ use OCA\Files_sharing\Tests\TestCase;
|
|||
|
||||
/**
|
||||
* Class Test_Files_Sharing_Api
|
||||
*
|
||||
* @group DB
|
||||
*/
|
||||
class Test_Files_Sharing_Api extends TestCase {
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -27,6 +27,8 @@ use OCA\Files_sharing\Tests\TestCase;
|
|||
|
||||
/**
|
||||
* Class Test_Files_Sharing
|
||||
*
|
||||
* @group DB
|
||||
*/
|
||||
class Test_Files_Sharing_Backend extends TestCase {
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
|
|
@ -26,6 +26,8 @@ use OCA\Files_Sharing\Tests\TestCase;
|
|||
|
||||
/**
|
||||
* Class FilesSharingCapabilitiesTest
|
||||
*
|
||||
* @group DB
|
||||
*/
|
||||
class FilesSharingCapabilitiesTest extends \Test\TestCase {
|
||||
|
||||
|
|
|
@ -38,6 +38,8 @@ use OCP\Share;
|
|||
use OC\URLGenerator;
|
||||
|
||||
/**
|
||||
* @group DB
|
||||
*
|
||||
* @package OCA\Files_Sharing\Controllers
|
||||
*/
|
||||
class ShareControllerTest extends \Test\TestCase {
|
||||
|
|
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
|
||||
/**
|
||||
* Tests for the external Storage class for remote shares.
|
||||
*
|
||||
* @group DB
|
||||
*/
|
||||
class Test_Files_Sharing_External_Storage extends \Test\TestCase {
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -24,6 +24,11 @@
|
|||
use OCA\Files_Sharing\Tests\TestCase;
|
||||
use OCA\Files_Sharing\Migration;
|
||||
|
||||
/**
|
||||
* Class MigrationTest
|
||||
*
|
||||
* @group DB
|
||||
*/
|
||||
class MigrationTest extends TestCase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
|
@ -27,6 +27,8 @@ use OCA\Files\Share;
|
|||
|
||||
/**
|
||||
* Class Test_Files_Sharing
|
||||
*
|
||||
* @group DB
|
||||
*/
|
||||
class Test_Files_Sharing extends OCA\Files_sharing\Tests\TestCase {
|
||||
|
||||
|
|
|
@ -27,6 +27,8 @@
|
|||
|
||||
/**
|
||||
* Class Test_Files_Sharing_Api
|
||||
*
|
||||
* @group DB
|
||||
*/
|
||||
class Test_Files_Sharing_Mount extends OCA\Files_sharing\Tests\TestCase {
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
|
||||
/**
|
||||
* Class Test_Files_Sharing_Updater
|
||||
*
|
||||
* @group DB
|
||||
*/
|
||||
class Test_Files_Sharing_Updater extends OCA\Files_Sharing\Tests\TestCase {
|
||||
|
||||
|
|
|
@ -25,6 +25,11 @@
|
|||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class Test_Files_Sharing_Watcher
|
||||
*
|
||||
* @group DB
|
||||
*/
|
||||
class Test_Files_Sharing_Watcher extends OCA\Files_sharing\Tests\TestCase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -29,6 +29,13 @@ use Test\TestCase;
|
|||
use OC\User\Manager;
|
||||
use OCP\Files\IRootFolder;
|
||||
|
||||
/**
|
||||
* Class CleanUpTest
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package OCA\Files_Trashbin\Tests\Command
|
||||
*/
|
||||
class CleanUpTest extends TestCase {
|
||||
|
||||
/** @var CleanUp */
|
||||
|
|
|
@ -24,6 +24,13 @@ namespace OCA\Files_Trashbin\Tests\Command;
|
|||
use OCA\Files_Trashbin\Command\Expire;
|
||||
use Test\TestCase;
|
||||
|
||||
/**
|
||||
* Class ExpireTest
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package OCA\Files_Trashbin\Tests\Command
|
||||
*/
|
||||
class ExpireTest extends TestCase {
|
||||
public function testExpireNonExistingUser() {
|
||||
$command = new Expire('test');
|
||||
|
|
|
@ -27,6 +27,13 @@ namespace OCA\Files_trashbin\Tests\Storage;
|
|||
use OC\Files\Storage\Temporary;
|
||||
use OC\Files\Filesystem;
|
||||
|
||||
/**
|
||||
* Class Storage
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package OCA\Files_trashbin\Tests\Storage
|
||||
*/
|
||||
class Storage extends \Test\TestCase {
|
||||
/**
|
||||
* @var string
|
||||
|
|
|
@ -29,6 +29,8 @@ use OCA\Files_Trashbin;
|
|||
|
||||
/**
|
||||
* Class Test_Encryption
|
||||
*
|
||||
* @group DB
|
||||
*/
|
||||
class Test_Trashbin extends \Test\TestCase {
|
||||
|
||||
|
|
|
@ -28,6 +28,13 @@ use Test\TestCase;
|
|||
use OC\User\Manager;
|
||||
use OCP\Files\IRootFolder;
|
||||
|
||||
/**
|
||||
* Class CleanupTest
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package OCA\Files_Versions\Tests\Command
|
||||
*/
|
||||
class CleanupTest extends TestCase {
|
||||
|
||||
/** @var CleanUp */
|
||||
|
|
|
@ -25,6 +25,13 @@ namespace OCA\Files_Versions\Tests\Command;
|
|||
use OCA\Files_Versions\Command\Expire;
|
||||
use Test\TestCase;
|
||||
|
||||
/**
|
||||
* Class ExpireTest
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package OCA\Files_Versions\Tests\Command
|
||||
*/
|
||||
class ExpireTest extends TestCase {
|
||||
public function testExpireNonExistingUser() {
|
||||
$command = new Expire($this->getUniqueID('test'), '');
|
||||
|
|
|
@ -34,6 +34,8 @@ use OC\Files\Storage\Temporary;
|
|||
/**
|
||||
* Class Test_Files_versions
|
||||
* this class provide basic files versions test
|
||||
*
|
||||
* @group DB
|
||||
*/
|
||||
class Test_Files_Versioning extends \Test\TestCase {
|
||||
|
||||
|
|
|
@ -23,15 +23,35 @@
|
|||
*/
|
||||
|
||||
namespace OCA\Provisioning_API\Tests;
|
||||
use OCA\Provisioning_API\Apps;
|
||||
use OCP\API;
|
||||
use OCP\App\IAppManager;
|
||||
use OCP\IUserSession;
|
||||
|
||||
/**
|
||||
* Class AppsTest
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package OCA\Provisioning_API\Tests
|
||||
*/
|
||||
class AppsTest extends TestCase {
|
||||
|
||||
|
||||
/** @var IAppManager */
|
||||
private $appManager;
|
||||
|
||||
/** @var Apps */
|
||||
private $api;
|
||||
|
||||
/** @var IUserSession */
|
||||
private $userSession;
|
||||
|
||||
public function setup() {
|
||||
parent::setup();
|
||||
$this->appManager = \OC::$server->getAppManager();
|
||||
$this->groupManager = \OC::$server->getGroupManager();
|
||||
$this->userSession = \OC::$server->getUserSession();
|
||||
$this->api = new \OCA\Provisioning_API\Apps($this->appManager);
|
||||
$this->api = new Apps($this->appManager);
|
||||
}
|
||||
|
||||
public function testGetAppInfo() {
|
||||
|
@ -46,7 +66,7 @@ class AppsTest extends TestCase {
|
|||
$result = $this->api->getAppInfo(['appid' => 'not_provisioning_api']);
|
||||
$this->assertInstanceOf('OC_OCS_Result', $result);
|
||||
$this->assertFalse($result->succeeded());
|
||||
$this->assertEquals(\OCP\API::RESPOND_NOT_FOUND, $result->getStatusCode());
|
||||
$this->assertEquals(API::RESPOND_NOT_FOUND, $result->getStatusCode());
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -23,10 +23,13 @@
|
|||
|
||||
namespace OCA\Provisioning_API\Tests;
|
||||
|
||||
use OCP\IUser;
|
||||
use OCP\IUserManager;
|
||||
use OCP\IGroupManager;
|
||||
|
||||
abstract class TestCase extends \Test\TestCase {
|
||||
|
||||
/** @var IUser[] */
|
||||
protected $users = array();
|
||||
|
||||
/** @var IUserManager */
|
||||
|
@ -46,7 +49,7 @@ abstract class TestCase extends \Test\TestCase {
|
|||
/**
|
||||
* Generates a temp user
|
||||
* @param int $num number of users to generate
|
||||
* @return IUser[]|Iuser
|
||||
* @return IUser[]|IUser
|
||||
*/
|
||||
protected function generateUsers($num = 1) {
|
||||
$users = array();
|
||||
|
|
|
@ -28,6 +28,13 @@ use \OCA\user_ldap\lib\Access;
|
|||
use \OCA\user_ldap\lib\Connection;
|
||||
use \OCA\user_ldap\lib\ILDAPWrapper;
|
||||
|
||||
/**
|
||||
* Class Test_Access
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package OCA\user_ldap\tests
|
||||
*/
|
||||
class Test_Access extends \Test\TestCase {
|
||||
private function getConnectorAndLdapMock() {
|
||||
static $conMethods;
|
||||
|
|
|
@ -23,6 +23,13 @@
|
|||
|
||||
namespace OCA\user_ldap\tests;
|
||||
|
||||
/**
|
||||
* Class Test_Connection
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package OCA\user_ldap\tests
|
||||
*/
|
||||
class Test_Connection extends \Test\TestCase {
|
||||
|
||||
public function testOriginalAgentUnchangedOnClone() {
|
||||
|
@ -52,4 +59,4 @@ class Test_Connection extends \Test\TestCase {
|
|||
$this->assertSame($agentPawd, $agent['ldapAgentPassword']);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,6 +30,13 @@ use \OCA\user_ldap\lib\Access;
|
|||
use \OCA\user_ldap\lib\Connection;
|
||||
use \OCA\user_ldap\lib\ILDAPWrapper;
|
||||
|
||||
/**
|
||||
* Class Test_Group_Ldap
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package OCA\user_ldap\tests
|
||||
*/
|
||||
class Test_Group_Ldap extends \Test\TestCase {
|
||||
private function getAccessMock() {
|
||||
static $conMethods;
|
||||
|
|
|
@ -24,6 +24,13 @@ namespace OCA\user_ldap\tests\mapping;
|
|||
|
||||
use OCA\User_LDAP\Mapping\GroupMapping;
|
||||
|
||||
/**
|
||||
* Class Test_GroupMapping
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package OCA\user_ldap\tests\mapping
|
||||
*/
|
||||
class Test_GroupMapping extends AbstractMappingTest {
|
||||
public function getMapper(\OCP\IDBConnection $dbMock) {
|
||||
return new GroupMapping($dbMock);
|
||||
|
|
|
@ -24,6 +24,13 @@ namespace OCA\user_ldap\tests\mapping;
|
|||
|
||||
use OCA\User_LDAP\Mapping\UserMapping;
|
||||
|
||||
/**
|
||||
* Class Test_UserMapping
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package OCA\user_ldap\tests\mapping
|
||||
*/
|
||||
class Test_UserMapping extends AbstractMappingTest {
|
||||
public function getMapper(\OCP\IDBConnection $dbMock) {
|
||||
return new UserMapping($dbMock);
|
||||
|
|
|
@ -26,6 +26,13 @@ namespace OCA\user_ldap\tests;
|
|||
|
||||
use OCA\user_ldap\lib\user\Manager;
|
||||
|
||||
/**
|
||||
* Class Test_User_Manager
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package OCA\user_ldap\tests
|
||||
*/
|
||||
class Test_User_Manager extends \Test\TestCase {
|
||||
|
||||
private function getTestInstances() {
|
||||
|
|
|
@ -25,6 +25,13 @@ namespace OCA\user_ldap\tests;
|
|||
|
||||
use OCA\user_ldap\lib\user\User;
|
||||
|
||||
/**
|
||||
* Class Test_User_User
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package OCA\user_ldap\tests
|
||||
*/
|
||||
class Test_User_User extends \Test\TestCase {
|
||||
|
||||
private function getTestInstances() {
|
||||
|
|
|
@ -31,6 +31,13 @@ use \OCA\user_ldap\lib\Access;
|
|||
use \OCA\user_ldap\lib\Connection;
|
||||
use \OCA\user_ldap\lib\ILDAPWrapper;
|
||||
|
||||
/**
|
||||
* Class Test_User_Ldap_Direct
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package OCA\user_ldap\tests
|
||||
*/
|
||||
class Test_User_Ldap_Direct extends \Test\TestCase {
|
||||
protected $backend;
|
||||
protected $access;
|
||||
|
|
|
@ -31,6 +31,13 @@ use \OCA\user_ldap\lib\Wizard;
|
|||
// use \OCA\user_ldap\lib\Configuration;
|
||||
// use \OCA\user_ldap\lib\ILDAPWrapper;
|
||||
|
||||
/**
|
||||
* Class Test_Wizard
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package OCA\user_ldap\tests
|
||||
*/
|
||||
class Test_Wizard extends \Test\TestCase {
|
||||
protected function setUp() {
|
||||
parent::setUp();
|
||||
|
|
17
autotest.sh
17
autotest.sh
|
@ -260,14 +260,23 @@ function execute_tests {
|
|||
if [[ "$_XDEBUG_CONFIG" ]]; then
|
||||
export XDEBUG_CONFIG=$_XDEBUG_CONFIG
|
||||
fi
|
||||
GROUP=''
|
||||
if [ "$TEST_SELECTION" == "DB" ]; then
|
||||
GROUP='--group DB'
|
||||
fi
|
||||
if [ "$TEST_SELECTION" == "NODB" ]; then
|
||||
GROUP='--exclude-group DB'
|
||||
fi
|
||||
|
||||
COVER=''
|
||||
if [ -z "$NOCOVERAGE" ]; then
|
||||
"${PHPUNIT[@]}" --configuration phpunit-autotest.xml --log-junit "autotest-results-$DB.xml" --coverage-clover "autotest-clover-$DB.xml" --coverage-html "coverage-html-$DB" "$2" "$3"
|
||||
RESULT=$?
|
||||
COVER='--coverage-clover "autotest-clover-$DB.xml" --coverage-html "coverage-html-$DB"'
|
||||
else
|
||||
echo "No coverage"
|
||||
"${PHPUNIT[@]}" --configuration phpunit-autotest.xml --log-junit "autotest-results-$DB.xml" "$2" "$3"
|
||||
RESULT=$?
|
||||
fi
|
||||
echo "${PHPUNIT[@]}" --configuration phpunit-autotest.xml $GROUP $COVER --log-junit "autotest-results-$DB.xml" "$2" "$3"
|
||||
"${PHPUNIT[@]}" --configuration phpunit-autotest.xml $GROUP $COVER --log-junit "autotest-results-$DB.xml" "$2" "$3"
|
||||
RESULT=$?
|
||||
|
||||
if [ "$PRIMARY_STORAGE_CONFIG" == "swift" ] ; then
|
||||
cd ..
|
||||
|
|
|
@ -105,6 +105,7 @@ class DAV extends Common {
|
|||
$this->secure = false;
|
||||
}
|
||||
if ($this->secure === true) {
|
||||
// inject mock for testing
|
||||
$certPath = \OC_User::getHome(\OC_User::getUser()) . '/files_external/rootcerts.crt';
|
||||
if (file_exists($certPath)) {
|
||||
$this->certPath = $certPath;
|
||||
|
|
|
@ -62,6 +62,7 @@ class URLGenerator implements IURLGenerator {
|
|||
* Returns a url to the given route.
|
||||
*/
|
||||
public function linkToRoute($route, $parameters = array()) {
|
||||
// TODO: mock router
|
||||
$urlLinkTo = \OC::$server->getRouter()->generate($route, $parameters);
|
||||
return $urlLinkTo;
|
||||
}
|
||||
|
|
|
@ -44,6 +44,8 @@ function is_uploaded_file($filename) {
|
|||
/**
|
||||
* Class AvatarControllerTest
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package OC\Core\Avatar
|
||||
*/
|
||||
class AvatarControllerTest extends \Test\TestCase {
|
||||
|
|
|
@ -8,6 +8,13 @@
|
|||
|
||||
namespace Test;
|
||||
|
||||
/**
|
||||
* Class TestAllConfig
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package Test
|
||||
*/
|
||||
class TestAllConfig extends \Test\TestCase {
|
||||
|
||||
/** @var \OCP\IDBConnection */
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -128,6 +128,7 @@ class AppTest extends \Test\TestCase {
|
|||
|
||||
protected function tearDown() {
|
||||
rrmdir($this->appPath);
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -36,7 +36,9 @@ class DIContainerTest extends \Test\TestCase {
|
|||
|
||||
protected function setUp(){
|
||||
parent::setUp();
|
||||
$this->container = new DIContainer('name');
|
||||
$this->container = $this->getMock('OC\AppFramework\DependencyInjection\DIContainer',
|
||||
['isAdminUser'], ['name']
|
||||
);
|
||||
$this->api = $this->getMock('OC\AppFramework\Core\API', array(), array('hi'));
|
||||
}
|
||||
|
||||
|
|
|
@ -9,6 +9,11 @@
|
|||
|
||||
use OC\Avatar;
|
||||
|
||||
/**
|
||||
* Class Test_Avatar
|
||||
*
|
||||
* @group DB
|
||||
*/
|
||||
class Test_Avatar extends \Test\TestCase {
|
||||
private static $trashBinStatus;
|
||||
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -22,6 +22,13 @@
|
|||
|
||||
namespace Test\Cache;
|
||||
|
||||
/**
|
||||
* Class FileCache
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package Test\Cache
|
||||
*/
|
||||
class FileCache extends \Test_Cache {
|
||||
/**
|
||||
* @var string
|
||||
|
|
|
@ -6,6 +6,11 @@
|
|||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class Test_DB
|
||||
*
|
||||
* @group DB
|
||||
*/
|
||||
class Test_DB extends \Test\TestCase {
|
||||
protected $backupGlobals = FALSE;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -6,6 +6,11 @@
|
|||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class TestMySqlMigration
|
||||
*
|
||||
* @group DB
|
||||
*/
|
||||
class TestMySqlMigration extends \Test\TestCase {
|
||||
|
||||
/** @var \Doctrine\DBAL\Connection */
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -6,6 +6,11 @@
|
|||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class TestSqliteMigration
|
||||
*
|
||||
* @group DB
|
||||
*/
|
||||
class TestSqliteMigration extends \Test\TestCase {
|
||||
|
||||
/** @var \Doctrine\DBAL\Connection */
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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 ;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -8,6 +8,13 @@
|
|||
|
||||
namespace Test\Files\Cache;
|
||||
|
||||
/**
|
||||
* Class Watcher
|
||||
*
|
||||
* @group DB
|
||||
*
|
||||
* @package Test\Files\Cache
|
||||
*/
|
||||
class Watcher extends \Test\TestCase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue