Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 1 addition & 2 deletions apps/comments/tests/Unit/AppInfo/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@
/**
* Class ApplicationTest
*
* @group DB
*
* @package OCA\Comments\Tests\Unit\AppInfo
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class ApplicationTest extends TestCase {
protected function setUp(): void {
parent::setUp();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
use Sabre\VObject\UUIDUtil;
use Test\TestCase;

/**
* @group DB
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class RecentContactMapperTest extends TestCase {
private RecentContactMapper $recentContactMapper;
private ITimeFactory $time;
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/lib/Connector/Sabre/Directory.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public function getChild($name, $info = null, ?IRequest $request = null, ?IL10N
}

if ($info->getMimeType() === FileInfo::MIMETYPE_FOLDER) {
$node = new \OCA\DAV\Connector\Sabre\Directory($this->fileView, $info, $this->tree, $this->shareManager);
$node = new Directory($this->fileView, $info, $this->tree, $this->shareManager);
} else {
// In case reading a directory was allowed but it turns out the node was a not a directory, reject it now.
if (!$this->info->isReadable()) {
Expand Down
3 changes: 2 additions & 1 deletion apps/dav/lib/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
use OCP\ITagManager;
use OCP\IURLGenerator;
use OCP\IUserSession;
use OCP\Mail\IEmailValidator;
use OCP\Mail\IMailer;
use OCP\Profiler\IProfiler;
use OCP\SabrePluginEvent;
Expand Down Expand Up @@ -351,7 +352,7 @@ public function __construct(
\OCP\Server::get(IMipService::class),
\OCP\Server::get(EventComparisonService::class),
\OCP\Server::get(\OCP\Mail\Provider\IManager::class),
\OCP\Server::get(\OCP\Mail\IEmailValidator::class),
\OCP\Server::get(IEmailValidator::class),
));
}
$this->server->addPlugin(new \OCA\DAV\CalDAV\Search\SearchPlugin());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
use Psr\Log\LoggerInterface;
use Test\TestCase;

/**
* @group DB
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class CalDavSharingBackendTest extends TestCase {

private IDBConnection $db;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
use OCP\Server;
use Test\TestCase;

/**
* @group DB
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class SharingMapperTest extends TestCase {

private SharingMapper $mapper;
Expand Down
4 changes: 1 addition & 3 deletions apps/dav/tests/integration/Db/PropertyMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
use OCP\Server;
use Test\TestCase;

/**
* @group DB
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class PropertyMapperTest extends TestCase {

/** @var PropertyMapper */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
use Test\TestCase;
use function scandir;

/**
* @group DB
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class CalendarMigratorTest extends TestCase {

private IUserManager $userManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
use Test\TestCase;
use function scandir;

/**
* @group DB
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class ContactsMigratorTest extends TestCase {

private IUserManager $userManager;
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/tests/unit/AppInfo/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
/**
* Class ApplicationTest
*
* @group DB
*
* @package OCA\DAV\Tests\Unit\AppInfo
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class ApplicationTest extends TestCase {
public function test(): void {
$app = new Application();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
use Psr\Log\LoggerInterface;
use Test\TestCase;

/**
* @group DB
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class UserStatusAutomationTest extends TestCase {
protected ITimeFactory&MockObject $time;
protected IJobList&MockObject $jobList;
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/tests/unit/CalDAV/AbstractCalDavBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
/**
* Class CalDavBackendTest
*
* @group DB
*
* @package OCA\DAV\Tests\unit\CalDAV
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
abstract class AbstractCalDavBackend extends TestCase {


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
use OCP\Server;
use Test\TestCase;

/**
* @group DB
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class GenericTest extends TestCase {
public static function dataFilters(): array {
return [
Expand Down
3 changes: 1 addition & 2 deletions apps/dav/tests/unit/CalDAV/CalDavBackendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@

/**
* Class CalDavBackendTest
*
* @group DB
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class CalDavBackendTest extends AbstractCalDavBackend {
public function testCalendarOperations(): void {
$calendarId = $this->createTestCalendar();
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/tests/unit/CalDAV/PublicCalendarRootTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
/**
* Class PublicCalendarRootTest
*
* @group DB
*
* @package OCA\DAV\Tests\unit\CalDAV
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class PublicCalendarRootTest extends TestCase {
public const UNIT_TEST_USER = '';
private CalDavBackend $backend;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
use OCP\AppFramework\QueryException;
use Test\TestCase;

/**
* @group DB
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class NotificationProviderManagerTest extends TestCase {
private NotificationProviderManager $providerManager;

Expand Down
2 changes: 1 addition & 1 deletion apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
/**
* Class CardDavBackendTest
*
* @group DB
*
* @package OCA\DAV\Tests\unit\CardDAV
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class CardDavBackendTest extends TestCase {
private Principal&MockObject $principal;
private IUserManager&MockObject $userManager;
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/tests/unit/Command/RemoveInvalidSharesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* Class RemoveInvalidSharesTest
*
* @package OCA\DAV\Tests\Unit\Repair
* @group DB
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class RemoveInvalidSharesTest extends TestCase {
private RemoveInvalidShares $command;

Expand Down
2 changes: 1 addition & 1 deletion apps/dav/tests/unit/Connector/LegacyPublicAuthTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
/**
* Class LegacyPublicAuthTest
*
* @group DB
*
* @package OCA\DAV\Tests\unit\Connector
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class LegacyPublicAuthTest extends \Test\TestCase {
private ISession&MockObject $session;
private IRequest&MockObject $request;
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/tests/unit/Connector/Sabre/AuthTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
* Class AuthTest
*
* @package OCA\DAV\Tests\unit\Connector\Sabre
* @group DB
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class AuthTest extends TestCase {
private ISession&MockObject $session;
private Session&MockObject $userSession;
Expand Down
4 changes: 1 addition & 3 deletions apps/dav/tests/unit/Connector/Sabre/BearerAuthTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
use Sabre\HTTP\ResponseInterface;
use Test\TestCase;

/**
* @group DB
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class BearerAuthTest extends TestCase {
private IUserSession&MockObject $userSession;
private ISession&MockObject $session;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
/**
* Class CustomPropertiesBackend
*
* @group DB
*
* @package OCA\DAV\Tests\unit\Connector\Sabre
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class CustomPropertiesBackendTest extends \Test\TestCase {
private \Sabre\DAV\Server $server;
private \Sabre\DAV\Tree&MockObject $tree;
Expand Down
4 changes: 1 addition & 3 deletions apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ public function getRelativePath($path): ?string {
}


/**
* @group DB
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class DirectoryTest extends \Test\TestCase {
use UserTrait;

Expand Down
2 changes: 1 addition & 1 deletion apps/dav/tests/unit/Connector/Sabre/FileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
/**
* Class File
*
* @group DB
*
* @package OCA\DAV\Tests\unit\Connector\Sabre
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class FileTest extends TestCase {
use MountProviderTrait;
use UserTrait;
Expand Down
4 changes: 1 addition & 3 deletions apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@
use Sabre\Xml\Service;
use Test\TestCase;

/**
* @group DB
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class FilesPluginTest extends TestCase {

private Tree&MockObject $tree;
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/tests/unit/Connector/Sabre/NodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
/**
* Class NodeTest
*
* @group DB
* @package OCA\DAV\Tests\unit\Connector\Sabre
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class NodeTest extends \Test\TestCase {
public static function davPermissionsProvider(): array {
return [
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
/**
* Class ObjectTreeTest
*
* @group DB
*
* @package OCA\DAV\Tests\Unit\Connector\Sabre
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class ObjectTreeTest extends \Test\TestCase {
public static function copyDataProvider(): array {
return [
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/tests/unit/Connector/Sabre/PublicAuthTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
/**
* Class PublicAuthTest
*
* @group DB
*
* @package OCA\DAV\Tests\unit\Connector
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class PublicAuthTest extends \Test\TestCase {

private ISession&MockObject $session;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
/**
* Class DeleteTest
*
* @group DB
*
* @package OCA\DAV\Tests\unit\Connector\Sabre\RequestTest
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class DeleteTest extends RequestTestCase {
public function testBasicUpload(): void {
$user = self::getUniqueID();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
/**
* Class DownloadTest
*
* @group DB
*
* @package OCA\DAV\Tests\unit\Connector\Sabre\RequestTest
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class DownloadTest extends RequestTestCase {
public function testDownload(): void {
$user = self::getUniqueID();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
/**
* Class EncryptionMasterKeyUploadTest
*
* @group DB
*
* @package OCA\DAV\Tests\Unit\Connector\Sabre\RequestTest
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class EncryptionMasterKeyUploadTest extends UploadTest {
use EncryptionTrait;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
/**
* Class EncryptionUploadTest
*
* @group DB
*
* @package OCA\DAV\Tests\Unit\Connector\Sabre\RequestTest
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class EncryptionUploadTest extends UploadTest {
use EncryptionTrait;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
/**
* Class PartFileInRootUploadTest
*
* @group DB
*
* @package OCA\DAV\Tests\unit\Connector\Sabre\RequestTest
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class PartFileInRootUploadTest extends UploadTest {
protected function setUp(): void {
$config = Server::get(IConfig::class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
/**
* Class UploadTest
*
* @group DB
*
* @package OCA\DAV\Tests\unit\Connector\Sabre\RequestTest
*/
#[\PHPUnit\Framework\Attributes\Group('DB')]
class UploadTest extends RequestTestCase {
public function testBasicUpload(): void {
$user = self::getUniqueID();
Expand Down
Loading
Loading