Ver código fonte

Update DAV unit tests to PSR-4

tags/v9.1.0beta1
Joas Schilling 8 anos atrás
pai
commit
5882e21b3b
Nenhuma conta vinculada ao e-mail do autor do commit
62 arquivos alterados com 122 adições e 112 exclusões
  1. 1
    1
      apps/dav/tests/unit/AppInfo/ApplicationTest.php
  2. 3
    2
      apps/dav/tests/unit/CalDAV/CalDavBackendTest.php
  3. 1
    1
      apps/dav/tests/unit/CalDAV/CalendarTest.php
  4. 1
    1
      apps/dav/tests/unit/CalDAV/Schedule/IMipPluginTest.php
  5. 1
    1
      apps/dav/tests/unit/CardDAV/AddressBookImplTest.php
  6. 1
    1
      apps/dav/tests/unit/CardDAV/AddressBookTest.php
  7. 1
    1
      apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php
  8. 3
    2
      apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
  9. 1
    1
      apps/dav/tests/unit/CardDAV/ContactsManagerTest.php
  10. 2
    2
      apps/dav/tests/unit/CardDAV/ConverterTest.php
  11. 1
    1
      apps/dav/tests/unit/CardDAV/Sharing/PluginTest.php
  12. 4
    1
      apps/dav/tests/unit/CardDAV/SyncServiceTest.php
  13. 2
    2
      apps/dav/tests/unit/Comments/CommentsNodeTest.php
  14. 2
    2
      apps/dav/tests/unit/Comments/CommentsPluginTest.php
  15. 2
    2
      apps/dav/tests/unit/Comments/EntityCollectionTest.php
  16. 2
    2
      apps/dav/tests/unit/Comments/EntityTypeCollectionTest.php
  17. 2
    2
      apps/dav/tests/unit/Comments/RootCollectionTest.php
  18. 4
    4
      apps/dav/tests/unit/Connector/PublicAuthTest.php
  19. 4
    4
      apps/dav/tests/unit/Connector/Sabre/AuthTest.php
  20. 2
    2
      apps/dav/tests/unit/Connector/Sabre/BlockLegacyClientPluginTest.php
  21. 2
    2
      apps/dav/tests/unit/Connector/Sabre/CommentsPropertiesPluginTest.php
  22. 2
    2
      apps/dav/tests/unit/Connector/Sabre/CopyEtagHeaderPluginTest.php
  23. 3
    3
      apps/dav/tests/unit/Connector/Sabre/CustomPropertiesBackendTest.php
  24. 1
    1
      apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php
  25. 2
    2
      apps/dav/tests/unit/Connector/Sabre/DummyGetResponsePluginTest.php
  26. 1
    1
      apps/dav/tests/unit/Connector/Sabre/Exception/ForbiddenTest.php
  27. 1
    1
      apps/dav/tests/unit/Connector/Sabre/Exception/InvalidPathTest.php
  28. 2
    2
      apps/dav/tests/unit/Connector/Sabre/ExceptionLoggerPluginTest.php
  29. 2
    2
      apps/dav/tests/unit/Connector/Sabre/FakeLockerPluginTest.php
  30. 3
    3
      apps/dav/tests/unit/Connector/Sabre/FileTest.php
  31. 2
    2
      apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php
  32. 2
    2
      apps/dav/tests/unit/Connector/Sabre/FilesReportPluginTest.php
  33. 2
    2
      apps/dav/tests/unit/Connector/Sabre/MaintenancePluginTest.php
  34. 4
    4
      apps/dav/tests/unit/Connector/Sabre/NodeTest.php
  35. 3
    3
      apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php
  36. 2
    2
      apps/dav/tests/unit/Connector/Sabre/PrincipalTest.php
  37. 2
    2
      apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php
  38. 1
    1
      apps/dav/tests/unit/Connector/Sabre/RequestTest/Auth.php
  39. 2
    2
      apps/dav/tests/unit/Connector/Sabre/RequestTest/DownloadTest.php
  40. 1
    1
      apps/dav/tests/unit/Connector/Sabre/RequestTest/EncryptionUploadTest.php
  41. 1
    1
      apps/dav/tests/unit/Connector/Sabre/RequestTest/ExceptionPlugin.php
  42. 4
    4
      apps/dav/tests/unit/Connector/Sabre/RequestTest/PartFileInRootUploadTest.php
  43. 1
    1
      apps/dav/tests/unit/Connector/Sabre/RequestTest/RequestTest.php
  44. 1
    1
      apps/dav/tests/unit/Connector/Sabre/RequestTest/Sapi.php
  45. 2
    2
      apps/dav/tests/unit/Connector/Sabre/RequestTest/UploadTest.php
  46. 2
    2
      apps/dav/tests/unit/Connector/Sabre/SharesPluginTest.php
  47. 2
    2
      apps/dav/tests/unit/Connector/Sabre/TagsPluginTest.php
  48. 2
    1
      apps/dav/tests/unit/DAV/BrowserErrorPagePluginTest.php
  49. 2
    1
      apps/dav/tests/unit/DAV/GroupPrincipalTest.php
  50. 1
    1
      apps/dav/tests/unit/DAV/HookManagerTest.php
  51. 1
    1
      apps/dav/tests/unit/DAV/Sharing/PluginTest.php
  52. 1
    1
      apps/dav/tests/unit/DAV/SystemPrincipalBackendTest.php
  53. 2
    2
      apps/dav/tests/unit/ServerTest.php
  54. 2
    2
      apps/dav/tests/unit/SystemTag/SystemTagMappingNodeTest.php
  55. 2
    2
      apps/dav/tests/unit/SystemTag/SystemTagNodeTest.php
  56. 2
    2
      apps/dav/tests/unit/SystemTag/SystemTagPluginTest.php
  57. 2
    2
      apps/dav/tests/unit/SystemTag/SystemTagsByIdCollectionTest.php
  58. 3
    3
      apps/dav/tests/unit/SystemTag/SystemTagsObjectMappingCollectionTest.php
  59. 3
    3
      apps/dav/tests/unit/SystemTag/SystemTagsObjectTypeCollectionTest.php
  60. 2
    1
      apps/dav/tests/unit/Upload/AssemblyStreamTest.php
  61. 3
    1
      apps/dav/tests/unit/Upload/FutureFileTest.php
  62. 1
    1
      apps/dav/tests/unit/phpunit.xml

apps/dav/tests/unit/appinfo/applicationtest.php → apps/dav/tests/unit/AppInfo/ApplicationTest.php Ver arquivo

@@ -19,7 +19,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\AppInfo;
namespace OCA\DAV\Tests\unit\AppInfo;

use OCA\DAV\AppInfo\Application;
use OCP\Contacts\IManager;

apps/dav/tests/unit/caldav/caldavbackendtest.php → apps/dav/tests/unit/CalDAV/CalDavBackendTest.php Ver arquivo

@@ -18,7 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
namespace Tests\Connector\Sabre;

namespace OCA\DAV\Tests\unit\CalDAV;

use DateTime;
use DateTimeZone;
@@ -37,7 +38,7 @@ use Test\TestCase;
*
* @group DB
*
* @package Tests\Connector\Sabre
* @package OCA\DAV\Tests\unit\CalDAV
*/
class CalDavBackendTest extends TestCase {


apps/dav/tests/unit/caldav/calendartest.php → apps/dav/tests/unit/CalDAV/CalendarTest.php Ver arquivo

@@ -19,7 +19,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\CalDAV;
namespace OCA\DAV\Tests\unit\CalDAV;

use OCA\DAV\CalDAV\BirthdayService;
use OCA\DAV\CalDAV\CalDavBackend;

apps/dav/tests/unit/caldav/schedule/imipplugintest.php → apps/dav/tests/unit/CalDAV/Schedule/IMipPluginTest.php Ver arquivo

@@ -19,7 +19,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\CalDAV\Schedule;
namespace OCA\DAV\Tests\unit\CalDAV\Schedule;

use OC\Mail\Mailer;
use OCA\DAV\CalDAV\Schedule\IMipPlugin;

apps/dav/tests/unit/carddav/addressbookimpltest.php → apps/dav/tests/unit/CardDAV/AddressBookImplTest.php Ver arquivo

@@ -21,7 +21,7 @@
*/


namespace OCA\DAV\Tests\Unit\CardDAV;
namespace OCA\DAV\Tests\unit\CardDAV;


use OCA\DAV\CardDAV\AddressBook;

apps/dav/tests/unit/carddav/addressbooktest.php → apps/dav/tests/unit/CardDAV/AddressBookTest.php Ver arquivo

@@ -19,7 +19,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\CardDAV;
namespace OCA\DAV\Tests\unit\CardDAV;

use OCA\DAV\CardDAV\AddressBook;
use OCA\DAV\CardDAV\CardDavBackend;

apps/dav/tests/unit/carddav/birthdayservicetest.php → apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php Ver arquivo

@@ -19,7 +19,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\CardDAV;
namespace OCA\DAV\Tests\unit\CardDAV;

use OCA\DAV\CalDAV\BirthdayService;
use OCA\DAV\CalDAV\CalDavBackend;

apps/dav/tests/unit/carddav/carddavbackendtest.php → apps/dav/tests/unit/CardDAV/CardDavBackendTest.php Ver arquivo

@@ -21,7 +21,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
namespace OCA\DAV\Tests\Unit\CardDAV;

namespace OCA\DAV\Tests\unit\CardDAV;

use InvalidArgumentException;
use OCA\DAV\CardDAV\AddressBook;
@@ -39,7 +40,7 @@ use Test\TestCase;
*
* @group DB
*
* @package OCA\DAV\Tests\Unit\CardDAV
* @package OCA\DAV\Tests\unit\CardDAV
*/
class CardDavBackendTest extends TestCase {


apps/dav/tests/unit/carddav/contactsmanagertest.php → apps/dav/tests/unit/CardDAV/ContactsManagerTest.php Ver arquivo

@@ -19,7 +19,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\CardDAV;
namespace OCA\DAV\Tests\unit\CardDAV;

use OCA\DAV\CardDAV\CardDavBackend;
use OCA\DAV\CardDAV\ContactsManager;

apps/dav/tests/unit/carddav/convertertest.php → apps/dav/tests/unit/CardDAV/ConverterTest.php Ver arquivo

@@ -20,12 +20,12 @@
*
*/

namespace OCA\DAV\Tests\Unit;
namespace OCA\DAV\Tests\unit\CardDAV;

use OCA\DAV\CardDAV\Converter;
use Test\TestCase;

class ConverterTests extends TestCase {
class ConverterTest extends TestCase {

/**
* @dataProvider providesNewUsers

apps/dav/tests/unit/carddav/sharing/plugintest.php → apps/dav/tests/unit/CardDAV/Sharing/PluginTest.php Ver arquivo

@@ -19,7 +19,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\CardDAV;
namespace OCA\DAV\Tests\unit\CardDAV\Sharing;


use OCA\DAV\DAV\Sharing\IShareable;

apps/dav/tests/unit/carddav/syncservicetest.php → apps/dav/tests/unit/CardDAV/SyncServiceTest.php Ver arquivo

@@ -19,8 +19,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
namespace OCA\DAV\CardDAV;

namespace OCA\DAV\Tests\unit\CardDAV;

use OCA\DAV\CardDAV\CardDavBackend;
use OCA\DAV\CardDAV\SyncService;
use OCP\IUser;
use OCP\IUserManager;
use Test\TestCase;

apps/dav/tests/unit/comments/commentnode.php → apps/dav/tests/unit/Comments/CommentsNodeTest.php Ver arquivo

@@ -19,13 +19,13 @@
*
*/

namespace OCA\DAV\Tests\Unit\Comments;
namespace OCA\DAV\Tests\unit\Comments;

use OCA\DAV\Comments\CommentNode;
use OCP\Comments\IComment;
use OCP\Comments\MessageTooLongException;

class CommentsNode extends \Test\TestCase {
class CommentsNodeTest extends \Test\TestCase {

protected $commentsManager;
protected $comment;

apps/dav/tests/unit/comments/commentsplugin.php → apps/dav/tests/unit/Comments/CommentsPluginTest.php Ver arquivo

@@ -20,14 +20,14 @@
*
*/

namespace OCA\DAV\Tests\Unit\Comments;
namespace OCA\DAV\Tests\unit\Comments;

use OC\Comments\Comment;
use OCA\DAV\Comments\CommentsPlugin as CommentsPluginImplementation;
use OCP\Comments\IComment;
use Sabre\DAV\Exception\NotFound;

class CommentsPlugin extends \Test\TestCase {
class CommentsPluginTest extends \Test\TestCase {
/** @var \Sabre\DAV\Server */
private $server;


apps/dav/tests/unit/comments/entitycollection.php → apps/dav/tests/unit/Comments/EntityCollectionTest.php Ver arquivo

@@ -19,9 +19,9 @@
*
*/

namespace OCA\DAV\Tests\Unit\Comments;
namespace OCA\DAV\Tests\unit\Comments;

class EntityCollection extends \Test\TestCase {
class EntityCollectionTest extends \Test\TestCase {

/** @var \OCP\Comments\ICommentsManager|\PHPUnit_Framework_MockObject_MockObject */
protected $commentsManager;

apps/dav/tests/unit/comments/entitytypecollection.php → apps/dav/tests/unit/Comments/EntityTypeCollectionTest.php Ver arquivo

@@ -19,11 +19,11 @@
*
*/

namespace OCA\DAV\Tests\Unit\Comments;
namespace OCA\DAV\Tests\unit\Comments;

use OCA\DAV\Comments\EntityCollection as EntityCollectionImplemantation;

class EntityTypeCollection extends \Test\TestCase {
class EntityTypeCollectionTest extends \Test\TestCase {

/** @var \OCP\Comments\ICommentsManager|\PHPUnit_Framework_MockObject_MockObject */
protected $commentsManager;

apps/dav/tests/unit/comments/rootcollection.php → apps/dav/tests/unit/Comments/RootCollectionTest.php Ver arquivo

@@ -19,13 +19,13 @@
*
*/

namespace OCA\DAV\Tests\Unit\Comments;
namespace OCA\DAV\Tests\unit\Comments;

use OCA\DAV\Comments\EntityTypeCollection as EntityTypeCollectionImplementation;
use OCP\Comments\CommentsEntityEvent;
use Symfony\Component\EventDispatcher\EventDispatcher;

class RootCollection extends \Test\TestCase {
class RootCollectionTest extends \Test\TestCase {

/** @var \OCP\Comments\ICommentsManager|\PHPUnit_Framework_MockObject_MockObject */
protected $commentsManager;

apps/dav/tests/unit/connector/publicauth.php → apps/dav/tests/unit/Connector/PublicAuthTest.php Ver arquivo

@@ -1,6 +1,6 @@
<?php

namespace OCA\DAV\Tests\Unit\Connector;
namespace OCA\DAV\Tests\unit\Connector;

use OCP\IRequest;
use OCP\ISession;
@@ -8,13 +8,13 @@ use OCP\Share\Exceptions\ShareNotFound;
use OCP\Share\IManager;

/**
* Class PublicAuth
* Class PublicAuthTest
*
* @group DB
*
* @package OCA\DAV\Tests\Unit\Connector
* @package OCA\DAV\Tests\unit\Connector
*/
class PublicAuth extends \Test\TestCase {
class PublicAuthTest extends \Test\TestCase {

/** @var ISession|\PHPUnit_Framework_MockObject_MockObject */
private $session;

apps/dav/tests/unit/connector/sabre/auth.php → apps/dav/tests/unit/Connector/Sabre/AuthTest.php Ver arquivo

@@ -22,7 +22,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\Connector\Sabre;
namespace OCA\DAV\Tests\unit\Connector\Sabre;

use OCP\IRequest;
use OCP\IUser;
@@ -31,12 +31,12 @@ use OCP\ISession;
use OC\User\Session;

/**
* Class Auth
* Class AuthTest
*
* @package OCA\DAV\Connector\Sabre
* @package OCA\DAV\Tests\unit\Connector\Sabre
* @group DB
*/
class Auth extends TestCase {
class AuthTest extends TestCase {
/** @var ISession */
private $session;
/** @var \OCA\DAV\Connector\Sabre\Auth */

apps/dav/tests/unit/connector/sabre/BlockLegacyClientPluginTest.php → apps/dav/tests/unit/Connector/Sabre/BlockLegacyClientPluginTest.php Ver arquivo

@@ -20,7 +20,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\Connector\Sabre;
namespace OCA\DAV\Tests\unit\Connector\Sabre;

use OCA\DAV\Connector\Sabre\BlockLegacyClientPlugin;
use Test\TestCase;
@@ -29,7 +29,7 @@ use OCP\IConfig;
/**
* Class BlockLegacyClientPluginTest
*
* @package Test\Connector\Sabre
* @package OCA\DAV\Tests\unit\Connector\Sabre
*/
class BlockLegacyClientPluginTest extends TestCase {
/** @var IConfig */

apps/dav/tests/unit/connector/sabre/commentpropertiesplugin.php → apps/dav/tests/unit/Connector/Sabre/CommentsPropertiesPluginTest.php Ver arquivo

@@ -19,11 +19,11 @@
*
*/

namespace OCA\DAV\Tests\Unit\Connector\Sabre;
namespace OCA\DAV\Tests\unit\Connector\Sabre;

use \OCA\DAV\Connector\Sabre\CommentPropertiesPlugin as CommentPropertiesPluginImplementation;

class CommentsPropertiesPlugin extends \Test\TestCase {
class CommentsPropertiesPluginTest extends \Test\TestCase {

/** @var CommentPropertiesPluginImplementation */
protected $plugin;

apps/dav/tests/unit/connector/sabre/copyetagheaderplugintest.php → apps/dav/tests/unit/Connector/Sabre/CopyEtagHeaderPluginTest.php Ver arquivo

@@ -19,7 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
namespace OCA\DAV\Tests\Unit\Connector\Sabre;
namespace OCA\DAV\Tests\unit\Connector\Sabre;

/**
* Copyright (c) 2015 Vincent Petry <pvince81@owncloud.com>
@@ -27,7 +27,7 @@ namespace OCA\DAV\Tests\Unit\Connector\Sabre;
* later.
* See the COPYING-README file.
*/
class CopyEtagPluginTest extends \Test\TestCase {
class CopyEtagHeaderPluginTest extends \Test\TestCase {

/**
* @var \OCA\DAV\Connector\Sabre\CopyEtagHeaderPlugin

apps/dav/tests/unit/connector/sabre/custompropertiesbackend.php → apps/dav/tests/unit/Connector/Sabre/CustomPropertiesBackendTest.php Ver arquivo

@@ -19,7 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
namespace OCA\DAV\Tests\Unit\Connector\Sabre;
namespace OCA\DAV\Tests\unit\Connector\Sabre;

/**
* Copyright (c) 2015 Vincent Petry <pvince81@owncloud.com>
@@ -33,9 +33,9 @@ namespace OCA\DAV\Tests\Unit\Connector\Sabre;
*
* @group DB
*
* @package Tests\Connector\Sabre
* @package OCA\DAV\Tests\unit\Connector\Sabre
*/
class CustomPropertiesBackend extends \Test\TestCase {
class CustomPropertiesBackendTest extends \Test\TestCase {

/**
* @var \Sabre\DAV\Server

apps/dav/tests/unit/connector/sabre/directory.php → apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php Ver arquivo

@@ -29,7 +29,7 @@ use OCP\Files\ForbiddenException;
/**
* @group DB
*/
class Directory extends \Test\TestCase {
class DirectoryTest extends \Test\TestCase {

/** @var \OC\Files\View | \PHPUnit_Framework_MockObject_MockObject */
private $view;

apps/dav/tests/unit/connector/sabre/DummyGetResponsePluginTest.php → apps/dav/tests/unit/Connector/Sabre/DummyGetResponsePluginTest.php Ver arquivo

@@ -20,7 +20,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\Connector\Sabre;
namespace OCA\DAV\Tests\unit\Connector\Sabre;

use OCA\DAV\Connector\Sabre\DummyGetResponsePlugin;
use Test\TestCase;
@@ -28,7 +28,7 @@ use Test\TestCase;
/**
* Class DummyGetResponsePluginTest
*
* @package Test\Connector\Sabre
* @package OCA\DAV\Tests\unit\Connector\Sabre
*/
class DummyGetResponsePluginTest extends TestCase {
/** @var DummyGetResponsePlugin */

apps/dav/tests/unit/connector/sabre/exception/forbiddentest.php → apps/dav/tests/unit/Connector/Sabre/Exception/ForbiddenTest.php Ver arquivo

@@ -19,7 +19,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\Connector\Sabre\Exception;
namespace OCA\DAV\Tests\unit\Connector\Sabre\Exception;

use OCA\DAV\Connector\Sabre\Exception\Forbidden;


apps/dav/tests/unit/connector/sabre/exception/invalidpathtest.php → apps/dav/tests/unit/Connector/Sabre/Exception/InvalidPathTest.php Ver arquivo

@@ -20,7 +20,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\Connector\Sabre\Exception;
namespace OCA\DAV\Tests\unit\Connector\Sabre\Exception;

use OCA\DAV\Connector\Sabre\Exception\InvalidPath;


apps/dav/tests/unit/connector/sabre/exceptionloggerplugin.php → apps/dav/tests/unit/Connector/Sabre/ExceptionLoggerPluginTest.php Ver arquivo

@@ -19,7 +19,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\Connector\Sabre;
namespace OCA\DAV\Tests\unit\Connector\Sabre;

use OCA\DAV\Connector\Sabre\Exception\InvalidPath;
use OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin as PluginToTest;
@@ -44,7 +44,7 @@ class TestLogger extends Log {
}
}

class ExceptionLoggerPlugin extends TestCase {
class ExceptionLoggerPluginTest extends TestCase {

/** @var Server */
private $server;

apps/dav/tests/unit/connector/sabre/FakeLockerPluginTest.php → apps/dav/tests/unit/Connector/Sabre/FakeLockerPluginTest.php Ver arquivo

@@ -19,7 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
namespace OCA\DAV\Tests\Unit\Connector\Sabre;
namespace OCA\DAV\Tests\unit\Connector\Sabre;

use OCA\DAV\Connector\Sabre\FakeLockerPlugin;
use Sabre\HTTP\Response;
@@ -28,7 +28,7 @@ use Test\TestCase;
/**
* Class FakeLockerPluginTest
*
* @package OCA\DAV\Tests\Unit\Connector\Sabre
* @package OCA\DAV\Tests\unit\Connector\Sabre
*/
class FakeLockerPluginTest extends TestCase {
/** @var FakeLockerPlugin */

apps/dav/tests/unit/connector/sabre/file.php → apps/dav/tests/unit/Connector/Sabre/FileTest.php Ver arquivo

@@ -22,7 +22,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\Connector\Sabre;
namespace OCA\DAV\Tests\unit\Connector\Sabre;

use OC\Files\Storage\Local;
use OCP\Files\ForbiddenException;
@@ -35,9 +35,9 @@ use OCP\Lock\ILockingProvider;
*
* @group DB
*
* @package Test\Connector\Sabre
* @package OCA\DAV\Tests\unit\Connector\Sabre
*/
class File extends \Test\TestCase {
class FileTest extends \Test\TestCase {

/**
* @var string

apps/dav/tests/unit/connector/sabre/filesplugin.php → apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php Ver arquivo

@@ -20,7 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
namespace OCA\DAV\Tests\Unit\Connector\Sabre;
namespace OCA\DAV\Tests\unit\Connector\Sabre;

use OCP\Files\StorageNotAvailableException;
use Sabre\DAV\PropFind;
@@ -33,7 +33,7 @@ use Test\TestCase;
* later.
* See the COPYING-README file.
*/
class FilesPlugin extends TestCase {
class FilesPluginTest extends TestCase {
const GETETAG_PROPERTYNAME = \OCA\DAV\Connector\Sabre\FilesPlugin::GETETAG_PROPERTYNAME;
const FILEID_PROPERTYNAME = \OCA\DAV\Connector\Sabre\FilesPlugin::FILEID_PROPERTYNAME;
const INTERNAL_FILEID_PROPERTYNAME = \OCA\DAV\Connector\Sabre\FilesPlugin::INTERNAL_FILEID_PROPERTYNAME;

apps/dav/tests/unit/connector/sabre/filesreportplugin.php → apps/dav/tests/unit/Connector/Sabre/FilesReportPluginTest.php Ver arquivo

@@ -20,7 +20,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\Connector\Sabre;
namespace OCA\DAV\Tests\unit\Connector\Sabre;

use OCA\DAV\Connector\Sabre\FilesReportPlugin as FilesReportPluginImplementation;
use Sabre\DAV\Exception\NotFound;
@@ -30,7 +30,7 @@ use OCP\Files\Folder;
use OCP\IGroupManager;
use OCP\SystemTag\ISystemTagManager;

class FilesReportPlugin extends \Test\TestCase {
class FilesReportPluginTest extends \Test\TestCase {
/** @var \Sabre\DAV\Server|\PHPUnit_Framework_MockObject_MockObject */
private $server;


apps/dav/tests/unit/connector/sabre/MaintenancePluginTest.php → apps/dav/tests/unit/Connector/Sabre/MaintenancePluginTest.php Ver arquivo

@@ -19,7 +19,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\Connector\Sabre;
namespace OCA\DAV\Tests\unit\Connector\Sabre;

use OCA\DAV\Connector\Sabre\MaintenancePlugin;
use Test\TestCase;
@@ -28,7 +28,7 @@ use OCP\IConfig;
/**
* Class MaintenancePluginTest
*
* @package Test\Connector\Sabre
* @package OCA\DAV\Tests\unit\Connector\Sabre
*/
class MaintenancePluginTest extends TestCase {
/** @var IConfig */

apps/dav/tests/unit/connector/sabre/node.php → apps/dav/tests/unit/Connector/Sabre/NodeTest.php Ver arquivo

@@ -21,15 +21,15 @@
*
*/

namespace OCA\DAV\Tests\Unit\Connector\Sabre;
namespace OCA\DAV\Tests\unit\Connector\Sabre;

/**
* Class Node
* Class NodeTest
*
* @group DB
* @package OCA\DAV\Tests\Unit\Connector\Sabre
* @package OCA\DAV\Tests\unit\Connector\Sabre
*/
class Node extends \Test\TestCase {
class NodeTest extends \Test\TestCase {
public function davPermissionsProvider() {
return array(
array(\OCP\Constants::PERMISSION_ALL, 'file', false, false, 'RDNVW'),

apps/dav/tests/unit/connector/sabre/objecttree.php → apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php Ver arquivo

@@ -23,7 +23,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\Connector\Sabre;
namespace OCA\DAV\Tests\unit\Connector\Sabre;


use OC\Files\FileInfo;
@@ -59,13 +59,13 @@ class TestDoubleFileView extends \OC\Files\View {
}

/**
* Class ObjectTree
* Class ObjectTreeTest
*
* @group DB
*
* @package OCA\DAV\Tests\Unit\Connector\Sabre
*/
class ObjectTree extends \Test\TestCase {
class ObjectTreeTest extends \Test\TestCase {

/**
* @dataProvider moveFailedProvider

apps/dav/tests/unit/connector/sabre/principal.php → apps/dav/tests/unit/Connector/Sabre/PrincipalTest.php Ver arquivo

@@ -21,14 +21,14 @@
*
*/

namespace OCA\DAV\Tests\Unit\Connector\Sabre;
namespace OCA\DAV\Tests\unit\Connector\Sabre;

use OCP\IGroupManager;
use \Sabre\DAV\PropPatch;
use OCP\IUserManager;
use Test\TestCase;

class Principal extends TestCase {
class PrincipalTest extends TestCase {
/** @var IUserManager | \PHPUnit_Framework_MockObject_MockObject */
private $userManager;
/** @var \OCA\DAV\Connector\Sabre\Principal */

apps/dav/tests/unit/connector/sabre/quotaplugin.php → apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php Ver arquivo

@@ -20,14 +20,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
namespace OCA\DAV\Tests\Unit\Connector\Sabre;
namespace OCA\DAV\Tests\unit\Connector\Sabre;
/**
* Copyright (c) 2013 Thomas Müller <thomas.mueller@tmit.eu>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
*/
class QuotaPlugin extends \Test\TestCase {
class QuotaPluginTest extends \Test\TestCase {

/**
* @var \Sabre\DAV\Server

apps/dav/tests/unit/connector/sabre/requesttest/auth.php → apps/dav/tests/unit/Connector/Sabre/RequestTest/Auth.php Ver arquivo

@@ -20,7 +20,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\Connector\Sabre\RequestTest;
namespace OCA\DAV\Tests\unit\Connector\Sabre\RequestTest;

use Sabre\DAV\Auth\Backend\BackendInterface;
use Sabre\HTTP\RequestInterface;

apps/dav/tests/unit/connector/sabre/requesttest/downloadtest.php → apps/dav/tests/unit/Connector/Sabre/RequestTest/DownloadTest.php Ver arquivo

@@ -20,7 +20,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\Connector\Sabre\RequestTest;
namespace OCA\DAV\Tests\unit\Connector\Sabre\RequestTest;

use OCP\AppFramework\Http;
use OCP\Lock\ILockingProvider;
@@ -30,7 +30,7 @@ use OCP\Lock\ILockingProvider;
*
* @group DB
*
* @package OCA\DAV\Tests\Unit\Connector\Sabre\RequestTest
* @package OCA\DAV\Tests\unit\Connector\Sabre\RequestTest
*/
class DownloadTest extends RequestTest {
public function testDownload() {

apps/dav/tests/unit/connector/sabre/requesttest/encryptionuploadtest.php → apps/dav/tests/unit/Connector/Sabre/RequestTest/EncryptionUploadTest.php Ver arquivo

@@ -20,7 +20,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\Connector\Sabre\RequestTest;
namespace OCA\DAV\Tests\unit\Connector\Sabre\RequestTest;

use OC\Files\View;
use Test\Traits\EncryptionTrait;

apps/dav/tests/unit/connector/sabre/requesttest/exceptionplugin.php → apps/dav/tests/unit/Connector/Sabre/RequestTest/ExceptionPlugin.php Ver arquivo

@@ -20,7 +20,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\Connector\Sabre\RequestTest;
namespace OCA\DAV\Tests\unit\Connector\Sabre\RequestTest;

use Sabre\DAV\Exception;


apps/dav/tests/unit/connector/sabre/requesttest/partfileinrootupload.php → apps/dav/tests/unit/Connector/Sabre/RequestTest/PartFileInRootUploadTest.php Ver arquivo

@@ -20,19 +20,19 @@
*
*/

namespace OCA\DAV\Tests\Unit\Connector\Sabre\RequestTest;
namespace OCA\DAV\Tests\unit\Connector\Sabre\RequestTest;

use OC\Files\View;
use Test\Traits\EncryptionTrait;

/**
* Class EncryptionUploadTest
* Class PartFileInRootUploadTest
*
* @group DB
*
* @package OCA\DAV\Tests\Unit\Connector\Sabre\RequestTest
* @package OCA\DAV\Tests\unit\Connector\Sabre\RequestTest
*/
class PartFileInRootUpload extends UploadTest {
class PartFileInRootUploadTest extends UploadTest {
protected function setUp() {
$config = \OC::$server->getConfig();
$mockConfig = $this->getMock('\OCP\IConfig');

apps/dav/tests/unit/connector/sabre/requesttest/requesttest.php → apps/dav/tests/unit/Connector/Sabre/RequestTest/RequestTest.php Ver arquivo

@@ -22,7 +22,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\Connector\Sabre\RequestTest;
namespace OCA\DAV\Tests\unit\Connector\Sabre\RequestTest;

use OCA\DAV\Connector\Sabre\Server;
use OCA\DAV\Connector\Sabre\ServerFactory;

apps/dav/tests/unit/connector/sabre/requesttest/sapi.php → apps/dav/tests/unit/Connector/Sabre/RequestTest/Sapi.php Ver arquivo

@@ -20,7 +20,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\Connector\Sabre\RequestTest;
namespace OCA\DAV\Tests\unit\Connector\Sabre\RequestTest;

use Sabre\HTTP\Request;
use Sabre\HTTP\Response;

apps/dav/tests/unit/connector/sabre/requesttest/uploadtest.php → apps/dav/tests/unit/Connector/Sabre/RequestTest/UploadTest.php Ver arquivo

@@ -20,7 +20,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\Connector\Sabre\RequestTest;
namespace OCA\DAV\Tests\unit\Connector\Sabre\RequestTest;

use OC\Connector\Sabre\Exception\FileLocked;
use OCP\AppFramework\Http;
@@ -31,7 +31,7 @@ use OCP\Lock\ILockingProvider;
*
* @group DB
*
* @package OCA\DAV\Tests\Unit\Connector\Sabre\RequestTest
* @package OCA\DAV\Tests\unit\Connector\Sabre\RequestTest
*/
class UploadTest extends RequestTest {
public function testBasicUpload() {

apps/dav/tests/unit/connector/sabre/sharesplugin.php → apps/dav/tests/unit/Connector/Sabre/SharesPluginTest.php Ver arquivo

@@ -18,9 +18,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
namespace OCA\DAV\Tests\Unit\Connector\Sabre;
namespace OCA\DAV\Tests\unit\Connector\Sabre;

class SharesPlugin extends \Test\TestCase {
class SharesPluginTest extends \Test\TestCase {

const SHARETYPES_PROPERTYNAME = \OCA\DAV\Connector\Sabre\SharesPlugin::SHARETYPES_PROPERTYNAME;


apps/dav/tests/unit/connector/sabre/tagsplugin.php → apps/dav/tests/unit/Connector/Sabre/TagsPluginTest.php Ver arquivo

@@ -19,7 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
namespace OCA\DAV\Tests\Unit\Connector\Sabre;
namespace OCA\DAV\Tests\unit\Connector\Sabre;

/**
* Copyright (c) 2014 Vincent Petry <pvince81@owncloud.com>
@@ -27,7 +27,7 @@ namespace OCA\DAV\Tests\Unit\Connector\Sabre;
* later.
* See the COPYING-README file.
*/
class TagsPlugin extends \Test\TestCase {
class TagsPluginTest extends \Test\TestCase {

const TAGS_PROPERTYNAME = \OCA\DAV\Connector\Sabre\TagsPlugin::TAGS_PROPERTYNAME;
const FAVORITE_PROPERTYNAME = \OCA\DAV\Connector\Sabre\TagsPlugin::FAVORITE_PROPERTYNAME;

apps/dav/tests/unit/dav/browsererrorpageplugintest.php → apps/dav/tests/unit/DAV/BrowserErrorPagePluginTest.php Ver arquivo

@@ -18,7 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
namespace OCA\DAV\Tests\Unit\DAV;

namespace OCA\DAV\Tests\unit\DAV;

use OCA\DAV\Files\BrowserErrorPagePlugin;
use PHPUnit_Framework_MockObject_MockObject;

apps/dav/tests/unit/dav/groupprincipaltest.php → apps/dav/tests/unit/DAV/GroupPrincipalTest.php Ver arquivo

@@ -18,7 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
namespace OCA\DAV\Tests\Unit\DAV;

namespace OCA\DAV\Tests\unit\DAV;

use OCA\DAV\DAV\GroupPrincipalBackend;
use OCP\IGroupManager;

apps/dav/tests/unit/dav/HookManagerTest.php → apps/dav/tests/unit/DAV/HookManagerTest.php Ver arquivo

@@ -20,7 +20,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\DAV;
namespace OCA\DAV\Tests\unit\DAV;

use OCA\DAV\CalDAV\BirthdayService;
use OCA\DAV\CalDAV\CalDavBackend;

apps/dav/tests/unit/dav/sharing/plugintest.php → apps/dav/tests/unit/DAV/Sharing/PluginTest.php Ver arquivo

@@ -19,7 +19,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\DAV;
namespace OCA\DAV\Tests\unit\DAV\Sharing;


use OCA\DAV\DAV\Sharing\IShareable;

apps/dav/tests/unit/dav/systemprincipalbackendtest.php → apps/dav/tests/unit/DAV/SystemPrincipalBackendTest.php Ver arquivo

@@ -19,7 +19,7 @@
*
*/

namespace OCA\DAV\Tests\DAV;
namespace OCA\DAV\Tests\unit\DAV;

use OCA\DAV\DAV\SystemPrincipalBackend;
use Test\TestCase;

apps/dav/tests/unit/servertest.php → apps/dav/tests/unit/ServerTest.php Ver arquivo

@@ -19,7 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
namespace OCA\DAV\Tests\Unit;
namespace OCA\DAV\Tests\unit;

use OCA\DAV\Server;
use OCP\IRequest;
@@ -40,4 +40,4 @@ class ServerTest extends \Test\TestCase {
$s = new Server($r, '/');
$this->assertNotNull($s->server);
}
}
}

apps/dav/tests/unit/systemtag/systemtagmappingnode.php → apps/dav/tests/unit/SystemTag/SystemTagMappingNodeTest.php Ver arquivo

@@ -19,14 +19,14 @@
*
*/

namespace OCA\DAV\Tests\Unit\SystemTag;
namespace OCA\DAV\Tests\unit\SystemTag;

use Sabre\DAV\Exception\NotFound;
use OC\SystemTag\SystemTag;
use OCP\SystemTag\TagNotFoundException;
use OCP\SystemTag\ISystemTag;

class SystemTagMappingNode extends \Test\TestCase {
class SystemTagMappingNodeTest extends \Test\TestCase {

/**
* @var \OCP\SystemTag\ISystemTagManager

apps/dav/tests/unit/systemtag/systemtagnode.php → apps/dav/tests/unit/SystemTag/SystemTagNodeTest.php Ver arquivo

@@ -19,7 +19,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\SystemTag;
namespace OCA\DAV\Tests\unit\SystemTag;

use Sabre\DAV\Exception\NotFound;
use Sabre\DAV\Exception\MethodNotAllowed;
@@ -30,7 +30,7 @@ use OCP\SystemTag\TagNotFoundException;
use OCP\SystemTag\TagAlreadyExistsException;
use OCP\SystemTag\ISystemTag;

class SystemTagNode extends \Test\TestCase {
class SystemTagNodeTest extends \Test\TestCase {

/**
* @var \OCP\SystemTag\ISystemTagManager

apps/dav/tests/unit/systemtag/systemtagplugin.php → apps/dav/tests/unit/SystemTag/SystemTagPluginTest.php Ver arquivo

@@ -21,7 +21,7 @@
*
*/

namespace OCA\DAV\Tests\Unit\SystemTag;
namespace OCA\DAV\Tests\unit\SystemTag;

use OC\SystemTag\SystemTag;
use OCP\IGroupManager;
@@ -30,7 +30,7 @@ use OCP\SystemTag\TagAlreadyExistsException;
use OCP\IUser;
use OCP\SystemTag\ISystemTag;

class SystemTagPlugin extends \Test\TestCase {
class SystemTagPluginTest extends \Test\TestCase {

const ID_PROPERTYNAME = \OCA\DAV\SystemTag\SystemTagPlugin::ID_PROPERTYNAME;
const DISPLAYNAME_PROPERTYNAME = \OCA\DAV\SystemTag\SystemTagPlugin::DISPLAYNAME_PROPERTYNAME;

apps/dav/tests/unit/systemtag/systemtagsbyidcollection.php → apps/dav/tests/unit/SystemTag/SystemTagsByIdCollectionTest.php Ver arquivo

@@ -19,13 +19,13 @@
*
*/

namespace OCA\DAV\Tests\Unit\SystemTag;
namespace OCA\DAV\Tests\unit\SystemTag;


use OC\SystemTag\SystemTag;
use OCP\SystemTag\TagNotFoundException;

class SystemTagsByIdCollection extends \Test\TestCase {
class SystemTagsByIdCollectionTest extends \Test\TestCase {

/**
* @var \OCP\SystemTag\ISystemTagManager

apps/dav/tests/unit/systemtag/systemtagsobjectmappingcollection.php → apps/dav/tests/unit/SystemTag/SystemTagsObjectMappingCollectionTest.php Ver arquivo

@@ -19,13 +19,13 @@
*
*/

namespace OCA\DAV\Tests\Unit\SystemTag;
namespace OCA\DAV\Tests\unit\SystemTag;


use OC\SystemTag\SystemTag;
use OCP\SystemTag\TagNotFoundException;

class SystemTagsObjectMappingCollection extends \Test\TestCase {
class SystemTagsObjectMappingCollectionTest extends \Test\TestCase {

/**
* @var \OCP\SystemTag\ISystemTagManager
@@ -33,7 +33,7 @@ class SystemTagsObjectMappingCollection extends \Test\TestCase {
private $tagManager;

/**
* @var \OCP\SystemTag\ISystemTagMapper
* @var \OCP\SystemTag\ISystemTagObjectMapper
*/
private $tagMapper;


apps/dav/tests/unit/systemtag/systemtagsobjecttypecollection.php → apps/dav/tests/unit/SystemTag/SystemTagsObjectTypeCollectionTest.php Ver arquivo

@@ -19,9 +19,9 @@
*
*/

namespace OCA\DAV\Tests\Unit\SystemTag;
namespace OCA\DAV\Tests\unit\SystemTag;

class SystemTagsObjectTypeCollection extends \Test\TestCase {
class SystemTagsObjectTypeCollectionTest extends \Test\TestCase {

/**
* @var \OCA\DAV\SystemTag\SystemTagsObjectTypeCollection
@@ -34,7 +34,7 @@ class SystemTagsObjectTypeCollection extends \Test\TestCase {
private $tagManager;

/**
* @var \OCP\SystemTag\ISystemTagMapper
* @var \OCP\SystemTag\ISystemTagObjectMapper
*/
private $tagMapper;


apps/dav/tests/unit/upload/assemblystreamtest.php → apps/dav/tests/unit/Upload/AssemblyStreamTest.php Ver arquivo

@@ -1,6 +1,7 @@
<?php
namespace OCA\DAV\Tests\unit\Upload;

class AssemblyStreamTest extends \PHPUnit_Framework_TestCase {
class AssemblyStreamTest extends \Test\TestCase {

/**
* @dataProvider providesNodes()

apps/dav/tests/unit/upload/futurefiletest.php → apps/dav/tests/unit/Upload/FutureFileTest.php Ver arquivo

@@ -1,6 +1,8 @@
<?php

class FutureFileTest extends \PHPUnit_Framework_TestCase {
namespace OCA\DAV\Tests\unit\Upload;

class FutureFileTest extends \Test\TestCase {

public function testGetContentType() {
$f = $this->mockFutureFile();

+ 1
- 1
apps/dav/tests/unit/phpunit.xml Ver arquivo

@@ -6,7 +6,7 @@
timeoutForLargeTests="900"
>
<testsuite name='unit'>
<directory suffix='.php'>.</directory>
<directory suffix='Test.php'>.</directory>
</testsuite>
<!-- filters for code coverage -->
<filter>

Carregando…
Cancelar
Salvar