]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make phpunit8 compatible
authorRoeland Jago Douma <roeland@famdouma.nl>
Thu, 21 Nov 2019 15:40:38 +0000 (16:40 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 27 Nov 2019 12:34:41 +0000 (13:34 +0100)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
679 files changed:
apps/admin_audit/tests/Actions/SecurityTest.php
apps/comments/tests/Unit/Activity/ListenerTest.php
apps/comments/tests/Unit/AppInfo/ApplicationTest.php
apps/comments/tests/Unit/Collaboration/CommentersSorterTest.php
apps/comments/tests/Unit/Controller/NotificationsTest.php
apps/comments/tests/Unit/EventHandlerTest.php
apps/comments/tests/Unit/JSSettingsHelperTest.php
apps/comments/tests/Unit/Notification/ListenerTest.php
apps/comments/tests/Unit/Notification/NotifierTest.php
apps/dav/tests/unit/Avatars/AvatarHomeTest.php
apps/dav/tests/unit/BackgroundJob/CleanupInvitationTokenJobTest.php
apps/dav/tests/unit/BackgroundJob/EventReminderJobTest.php
apps/dav/tests/unit/BackgroundJob/GenerateBirthdayCalendarBackgroundJobTest.php
apps/dav/tests/unit/BackgroundJob/RefreshWebcalJobTest.php
apps/dav/tests/unit/BackgroundJob/RegisterRegenerateBirthdayCalendarsTest.php
apps/dav/tests/unit/BackgroundJob/UpdateCalendarResourcesRoomsBackgroundJobTest.php
apps/dav/tests/unit/CalDAV/AbstractCalDavBackend.php
apps/dav/tests/unit/CalDAV/Activity/BackendTest.php
apps/dav/tests/unit/CalDAV/Activity/Filter/CalendarTest.php
apps/dav/tests/unit/CalDAV/Activity/Filter/TodoTest.php
apps/dav/tests/unit/CalDAV/Activity/Provider/BaseTest.php
apps/dav/tests/unit/CalDAV/BirthdayCalendar/EnablePluginTest.php
apps/dav/tests/unit/CalDAV/CalendarHomeTest.php
apps/dav/tests/unit/CalDAV/CalendarImplTest.php
apps/dav/tests/unit/CalDAV/CalendarManagerTest.php
apps/dav/tests/unit/CalDAV/CalendarTest.php
apps/dav/tests/unit/CalDAV/OutboxTest.php
apps/dav/tests/unit/CalDAV/PluginTest.php
apps/dav/tests/unit/CalDAV/PublicCalendarRootTest.php
apps/dav/tests/unit/CalDAV/Publishing/PublishingTest.php
apps/dav/tests/unit/CalDAV/Reminder/BackendTest.php
apps/dav/tests/unit/CalDAV/Reminder/NotificationProvider/AbstractNotificationProviderTest.php
apps/dav/tests/unit/CalDAV/Reminder/NotificationProvider/EmailProviderTest.php
apps/dav/tests/unit/CalDAV/Reminder/NotificationProvider/PushProviderTest.php
apps/dav/tests/unit/CalDAV/Reminder/NotificationProviderManagerTest.php
apps/dav/tests/unit/CalDAV/Reminder/NotifierTest.php
apps/dav/tests/unit/CalDAV/Reminder/ReminderServiceTest.php
apps/dav/tests/unit/CalDAV/ResourceBooking/AbstractPrincipalBackendTest.php
apps/dav/tests/unit/CalDAV/ResourceBooking/ResourcePrincipalBackendTest.php
apps/dav/tests/unit/CalDAV/ResourceBooking/RoomPrincipalBackendTest.php
apps/dav/tests/unit/CalDAV/Schedule/IMipPluginTest.php
apps/dav/tests/unit/CalDAV/Schedule/PluginTest.php
apps/dav/tests/unit/CalDAV/Search/SearchPluginTest.php
apps/dav/tests/unit/CardDAV/AddressBookImplTest.php
apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php
apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
apps/dav/tests/unit/CardDAV/ConverterTest.php
apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php
apps/dav/tests/unit/CardDAV/Sharing/PluginTest.php
apps/dav/tests/unit/Command/ListCalendarsTest.php
apps/dav/tests/unit/Command/MoveCalendarTest.php
apps/dav/tests/unit/Command/RemoveInvalidSharesTest.php
apps/dav/tests/unit/Comments/CommentsNodeTest.php
apps/dav/tests/unit/Comments/CommentsPluginTest.php
apps/dav/tests/unit/Comments/EntityCollectionTest.php
apps/dav/tests/unit/Comments/EntityTypeCollectionTest.php
apps/dav/tests/unit/Comments/RootCollectionTest.php
apps/dav/tests/unit/Connector/PublicAuthTest.php
apps/dav/tests/unit/Connector/Sabre/AuthTest.php
apps/dav/tests/unit/Connector/Sabre/BearerAuthTest.php
apps/dav/tests/unit/Connector/Sabre/BlockLegacyClientPluginTest.php
apps/dav/tests/unit/Connector/Sabre/CommentsPropertiesPluginTest.php
apps/dav/tests/unit/Connector/Sabre/CopyEtagHeaderPluginTest.php
apps/dav/tests/unit/Connector/Sabre/CustomPropertiesBackendTest.php
apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php
apps/dav/tests/unit/Connector/Sabre/DummyGetResponsePluginTest.php
apps/dav/tests/unit/Connector/Sabre/FakeLockerPluginTest.php
apps/dav/tests/unit/Connector/Sabre/FileTest.php
apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php
apps/dav/tests/unit/Connector/Sabre/FilesReportPluginTest.php
apps/dav/tests/unit/Connector/Sabre/MaintenancePluginTest.php
apps/dav/tests/unit/Connector/Sabre/PrincipalTest.php
apps/dav/tests/unit/Connector/Sabre/RequestTest/PartFileInRootUploadTest.php
apps/dav/tests/unit/Connector/Sabre/RequestTest/RequestTestCase.php
apps/dav/tests/unit/Connector/Sabre/SharesPluginTest.php
apps/dav/tests/unit/Connector/Sabre/TagsPluginTest.php
apps/dav/tests/unit/Controller/BirthdayCalendarControllerTest.php
apps/dav/tests/unit/Controller/DirectControllerTest.php
apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php
apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php
apps/dav/tests/unit/DAV/GroupPrincipalTest.php
apps/dav/tests/unit/DAV/HookManagerTest.php
apps/dav/tests/unit/DAV/Sharing/PluginTest.php
apps/dav/tests/unit/Direct/DirectFileTest.php
apps/dav/tests/unit/Direct/DirectHomeTest.php
apps/dav/tests/unit/Files/FileSearchBackendTest.php
apps/dav/tests/unit/Files/Sharing/FilesDropPluginTest.php
apps/dav/tests/unit/Migration/CalDAVRemoveEmptyValueTest.php
apps/dav/tests/unit/Migration/RefreshWebcalJobRegistrarTest.php
apps/dav/tests/unit/Migration/RegenerateBirthdayCalendarsTest.php
apps/dav/tests/unit/Provisioning/Apple/AppleProvisioningNodeTest.php
apps/dav/tests/unit/Provisioning/Apple/AppleProvisioningPluginTest.php
apps/dav/tests/unit/Settings/CalDAVSettingsTest.php
apps/dav/tests/unit/SystemTag/SystemTagMappingNodeTest.php
apps/dav/tests/unit/SystemTag/SystemTagNodeTest.php
apps/dav/tests/unit/SystemTag/SystemTagPluginTest.php
apps/dav/tests/unit/SystemTag/SystemTagsByIdCollectionTest.php
apps/dav/tests/unit/SystemTag/SystemTagsObjectMappingCollectionTest.php
apps/dav/tests/unit/SystemTag/SystemTagsObjectTypeCollectionTest.php
apps/dav/tests/unit/Upload/ChunkingPluginTest.php
apps/encryption/tests/Command/TestEnableMasterKey.php
apps/encryption/tests/Controller/RecoveryControllerTest.php
apps/encryption/tests/Controller/SettingsControllerTest.php
apps/encryption/tests/Controller/StatusControllerTest.php
apps/encryption/tests/Crypto/CryptTest.php
apps/encryption/tests/Crypto/DecryptAllTest.php
apps/encryption/tests/Crypto/EncryptAllTest.php
apps/encryption/tests/Crypto/EncryptionTest.php
apps/encryption/tests/HookManagerTest.php
apps/encryption/tests/Hooks/UserHooksTest.php
apps/encryption/tests/KeyManagerTest.php
apps/encryption/tests/RecoveryTest.php
apps/encryption/tests/SessionTest.php
apps/encryption/tests/Settings/AdminTest.php
apps/encryption/tests/Users/SetupTest.php
apps/encryption/tests/UtilTest.php
apps/federatedfilesharing/tests/AddressHandlerTest.php
apps/federatedfilesharing/tests/Controller/MountPublicLinkControllerTest.php
apps/federatedfilesharing/tests/Controller/RequestHandlerControllerTest.php
apps/federatedfilesharing/tests/FederatedShareProviderTest.php
apps/federatedfilesharing/tests/NotificationsTest.php
apps/federatedfilesharing/tests/Settings/AdminTest.php
apps/federatedfilesharing/tests/TestCase.php
apps/federatedfilesharing/tests/TokenHandlerTest.php
apps/federation/tests/BackgroundJob/GetSharedSecretTest.php
apps/federation/tests/BackgroundJob/RequestSharedSecretTest.php
apps/federation/tests/Controller/OCSAuthAPIControllerTest.php
apps/federation/tests/Controller/SettingsControllerTest.php
apps/federation/tests/DbHandlerTest.php
apps/federation/tests/HooksTest.php
apps/federation/tests/Middleware/AddServerMiddlewareTest.php
apps/federation/tests/Settings/AdminTest.php
apps/federation/tests/SyncFederationAddressbooksTest.php
apps/federation/tests/TrustedServersTest.php
apps/files/tests/Activity/ProviderTest.php
apps/files/tests/BackgroundJob/DeleteOrphanedItemsJobTest.php
apps/files/tests/BackgroundJob/ScanFilesTest.php
apps/files/tests/Command/DeleteOrphanedFilesTest.php
apps/files/tests/Controller/ApiControllerTest.php
apps/files/tests/Controller/ViewControllerTest.php
apps/files/tests/Service/TagServiceTest.php
apps/files_external/tests/Auth/Password/GlobalAuth.php
apps/files_external/tests/Config/UserPlaceholderHandlerTest.php
apps/files_external/tests/Controller/AjaxControllerTest.php
apps/files_external/tests/Controller/GlobalStoragesControllerTest.php
apps/files_external/tests/Controller/StoragesControllerTest.php
apps/files_external/tests/Controller/UserStoragesControllerTest.php
apps/files_external/tests/Service/BackendServiceTest.php
apps/files_external/tests/Service/DBConfigServiceTest.php
apps/files_external/tests/Service/GlobalStoragesServiceTest.php
apps/files_external/tests/Service/StoragesServiceTest.php
apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php
apps/files_external/tests/Service/UserStoragesServiceTest.php
apps/files_external/tests/Settings/AdminTest.php
apps/files_external/tests/Settings/SectionTest.php
apps/files_external/tests/Storage/Amazons3Test.php
apps/files_external/tests/Storage/FtpTest.php
apps/files_external/tests/Storage/OwncloudTest.php
apps/files_external/tests/Storage/SFTP_KeyTest.php
apps/files_external/tests/Storage/SftpTest.php
apps/files_external/tests/Storage/SmbTest.php
apps/files_external/tests/Storage/SwiftTest.php
apps/files_external/tests/Storage/WebdavTest.php
apps/files_sharing/tests/ApiTest.php
apps/files_sharing/tests/CacheTest.php
apps/files_sharing/tests/Collaboration/ShareRecipientSorterTest.php
apps/files_sharing/tests/Command/CleanupRemoteStoragesTest.php
apps/files_sharing/tests/Controller/ExternalShareControllerTest.php
apps/files_sharing/tests/Controller/PublicPreviewControllerTest.php
apps/files_sharing/tests/Controller/ShareAPIControllerTest.php
apps/files_sharing/tests/Controller/ShareControllerTest.php
apps/files_sharing/tests/Controller/ShareInfoControllerTest.php
apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php
apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php
apps/files_sharing/tests/ExpireSharesJobTest.php
apps/files_sharing/tests/External/CacheTest.php
apps/files_sharing/tests/External/ManagerTest.php
apps/files_sharing/tests/External/ScannerTest.php
apps/files_sharing/tests/LockingTest.php
apps/files_sharing/tests/Middleware/OCSShareAPIMiddlewareTest.php
apps/files_sharing/tests/Middleware/ShareInfoMiddlewareTest.php
apps/files_sharing/tests/Middleware/SharingCheckMiddlewareTest.php
apps/files_sharing/tests/Migration/SetPasswordColumnTest.php
apps/files_sharing/tests/MountProviderTest.php
apps/files_sharing/tests/PermissionsTest.php
apps/files_sharing/tests/PropagationTestCase.php
apps/files_sharing/tests/ShareTest.php
apps/files_sharing/tests/SharedMountTest.php
apps/files_sharing/tests/SharedStorageTest.php
apps/files_sharing/tests/TestCase.php
apps/files_sharing/tests/UnshareChildrenTest.php
apps/files_sharing/tests/UpdaterTest.php
apps/files_sharing/tests/WatcherTest.php
apps/files_trashbin/tests/CapabilitiesTest.php
apps/files_trashbin/tests/Command/CleanUpTest.php
apps/files_trashbin/tests/Controller/PreviewControllerTest.php
apps/files_trashbin/tests/StorageTest.php
apps/files_trashbin/tests/TrashbinTest.php
apps/files_versions/tests/Command/CleanupTest.php
apps/files_versions/tests/Controller/PreviewControllerTest.php
apps/files_versions/tests/VersioningTest.php
apps/oauth2/tests/Controller/LoginRedirectorControllerTest.php
apps/oauth2/tests/Controller/OauthApiControllerTest.php
apps/oauth2/tests/Controller/SettingsControllerTest.php
apps/oauth2/tests/Db/AccessTokenMapperTest.php
apps/oauth2/tests/Db/ClientMapperTest.php
apps/oauth2/tests/Settings/AdminTest.php
apps/provisioning_api/tests/Controller/AppConfigControllerTest.php
apps/provisioning_api/tests/Controller/AppsControllerTest.php
apps/provisioning_api/tests/Controller/GroupsControllerTest.php
apps/provisioning_api/tests/Controller/UsersControllerTest.php
apps/provisioning_api/tests/Middleware/ProvisioningApiMiddlewareTest.php
apps/provisioning_api/tests/TestCase.php
apps/settings/tests/Activity/SecurityFilterTest.php
apps/settings/tests/Activity/SecurityProviderTest.php
apps/settings/tests/Activity/SecuritySettingTest.php
apps/settings/tests/AppInfo/ApplicationTest.php
apps/settings/tests/Controller/AdminSettingsControllerTest.php
apps/settings/tests/Controller/AppSettingsControllerTest.php
apps/settings/tests/Controller/AuthSettingsControllerTest.php
apps/settings/tests/Controller/CertificateControllerTest.php
apps/settings/tests/Controller/CheckSetupControllerTest.php
apps/settings/tests/Controller/MailSettingsControllerTest.php
apps/settings/tests/Controller/TwoFactorSettingsControllerTest.php
apps/settings/tests/Controller/UsersControllerTest.php
apps/settings/tests/Mailer/NewUserMailHelperTest.php
apps/settings/tests/Middleware/SubadminMiddlewareTest.php
apps/settings/tests/Personal/Security/AuthtokensTest.php
apps/settings/tests/Settings/Admin/MailTest.php
apps/settings/tests/Settings/Admin/SecurityTest.php
apps/settings/tests/Settings/Admin/ServerTest.php
apps/settings/tests/Settings/Admin/SharingTest.php
apps/settings/tests/Settings/Personal/SecurityTest.php
apps/sharebymail/tests/CapabilitiesTest.php
apps/sharebymail/tests/SettingsTest.php
apps/sharebymail/tests/ShareByMailProviderTest.php
apps/systemtags/tests/Activity/SettingTest.php
apps/systemtags/tests/Settings/AdminTest.php
apps/theming/tests/CapabilitiesTest.php
apps/theming/tests/Controller/IconControllerTest.php
apps/theming/tests/Controller/ThemingControllerTest.php
apps/theming/tests/IconBuilderTest.php
apps/theming/tests/ImageManagerTest.php
apps/theming/tests/ServicesTest.php
apps/theming/tests/Settings/AdminTest.php
apps/theming/tests/Settings/SectionTest.php
apps/theming/tests/ThemingDefaultsTest.php
apps/theming/tests/UtilTest.php
apps/twofactor_backupcodes/tests/Db/BackupCodeMapperTest.php
apps/twofactor_backupcodes/tests/Service/BackupCodeStorageTest.php
apps/twofactor_backupcodes/tests/Unit/Activity/ProviderTest.php
apps/twofactor_backupcodes/tests/Unit/BackgroundJob/CheckBackupCodeTest.php
apps/twofactor_backupcodes/tests/Unit/BackgroundJob/RememberBackupCodesJobTest.php
apps/twofactor_backupcodes/tests/Unit/Controller/SettingsControllerTest.php
apps/twofactor_backupcodes/tests/Unit/Listener/ActivityPublisherTest.php
apps/twofactor_backupcodes/tests/Unit/Listener/ClearNotificationsTest.php
apps/twofactor_backupcodes/tests/Unit/Listener/ProviderDisabledTest.php
apps/twofactor_backupcodes/tests/Unit/Listener/ProviderEnabledTest.php
apps/twofactor_backupcodes/tests/Unit/Listener/RegistryUpdaterTest.php
apps/twofactor_backupcodes/tests/Unit/Migration/CheckBackupCodeTest.php
apps/twofactor_backupcodes/tests/Unit/Notification/NotifierTest.php
apps/twofactor_backupcodes/tests/Unit/Provider/BackupCodesProviderTest.php
apps/twofactor_backupcodes/tests/Unit/Service/BackupCodeStorageTest.php
apps/updatenotification/tests/Controller/AdminControllerTest.php
apps/updatenotification/tests/Notification/BackgroundJobTest.php
apps/updatenotification/tests/Notification/NotifierTest.php
apps/updatenotification/tests/ResetTokenBackgroundJobTest.php
apps/updatenotification/tests/Settings/AdminTest.php
apps/updatenotification/tests/UpdateCheckerTest.php
apps/user_ldap/tests/AccessTest.php
apps/user_ldap/tests/ConfigurationTest.php
apps/user_ldap/tests/ConnectionTest.php
apps/user_ldap/tests/HelperTest.php
apps/user_ldap/tests/Integration/ExceptionOnLostConnection.php
apps/user_ldap/tests/Jobs/SyncTest.php
apps/user_ldap/tests/LDAPProviderTest.php
apps/user_ldap/tests/LDAPTest.php
apps/user_ldap/tests/Migration/AbstractUUIDFixTest.php
apps/user_ldap/tests/Migration/UUIDFixGroupTest.php
apps/user_ldap/tests/Migration/UUIDFixInsertTest.php
apps/user_ldap/tests/Migration/UUIDFixUserTest.php
apps/user_ldap/tests/Settings/AdminTest.php
apps/user_ldap/tests/Settings/SectionTest.php
apps/user_ldap/tests/User/DeletedUsersIndexTest.php
apps/user_ldap/tests/User/ManagerTest.php
apps/user_ldap/tests/User/UserTest.php
apps/user_ldap/tests/User_LDAPTest.php
apps/user_ldap/tests/User_ProxyTest.php
apps/user_ldap/tests/WizardTest.php
apps/workflowengine/tests/Check/RequestRemoteAddressTest.php
apps/workflowengine/tests/Check/RequestTimeTest.php
apps/workflowengine/tests/Check/RequestUserAgentTest.php
apps/workflowengine/tests/ManagerTest.php
tests/Core/Command/Apps/AppsDisableTest.php
tests/Core/Command/Apps/AppsEnableTest.php
tests/Core/Command/Config/App/DeleteConfigTest.php
tests/Core/Command/Config/App/GetConfigTest.php
tests/Core/Command/Config/App/SetConfigTest.php
tests/Core/Command/Config/ImportTest.php
tests/Core/Command/Config/ListConfigsTest.php
tests/Core/Command/Config/System/DeleteConfigTest.php
tests/Core/Command/Config/System/GetConfigTest.php
tests/Core/Command/Config/System/SetConfigTest.php
tests/Core/Command/Encryption/ChangeKeyStorageRootTest.php
tests/Core/Command/Encryption/DecryptAllTest.php
tests/Core/Command/Encryption/DisableTest.php
tests/Core/Command/Encryption/EnableTest.php
tests/Core/Command/Encryption/EncryptAllTest.php
tests/Core/Command/Encryption/SetDefaultModuleTest.php
tests/Core/Command/Group/AddTest.php
tests/Core/Command/Group/AddUserTest.php
tests/Core/Command/Group/DeleteTest.php
tests/Core/Command/Group/ListCommandTest.php
tests/Core/Command/Group/RemoveUserTest.php
tests/Core/Command/Log/FileTest.php
tests/Core/Command/Log/ManageTest.php
tests/Core/Command/Maintenance/DataFingerprintTest.php
tests/Core/Command/Maintenance/Mimetype/UpdateDBTest.php
tests/Core/Command/Maintenance/ModeTest.php
tests/Core/Command/Maintenance/UpdateTheme.php
tests/Core/Command/TwoFactorAuth/CleanupTest.php
tests/Core/Command/TwoFactorAuth/DisableTest.php
tests/Core/Command/TwoFactorAuth/EnableTest.php
tests/Core/Command/TwoFactorAuth/EnforceTest.php
tests/Core/Command/TwoFactorAuth/StateTest.php
tests/Core/Command/User/DeleteTest.php
tests/Core/Command/User/DisableTest.php
tests/Core/Command/User/EnableTest.php
tests/Core/Command/User/LastSeenTest.php
tests/Core/Command/User/SettingTest.php
tests/Core/Controller/AppPasswordControllerTest.php
tests/Core/Controller/AutoCompleteControllerTest.php
tests/Core/Controller/AvatarControllerTest.php
tests/Core/Controller/CSRFTokenControllerTest.php
tests/Core/Controller/ChangePasswordControllerTest.php
tests/Core/Controller/ClientFlowLoginControllerTest.php
tests/Core/Controller/ClientFlowLoginV2ControllerTest.php
tests/Core/Controller/ContactsMenuControllerTest.php
tests/Core/Controller/CssControllerTest.php
tests/Core/Controller/GuestAvatarControllerTest.php
tests/Core/Controller/JsControllerTest.php
tests/Core/Controller/LoginControllerTest.php
tests/Core/Controller/LostControllerTest.php
tests/Core/Controller/NavigationControllerTest.php
tests/Core/Controller/OCSControllerTest.php
tests/Core/Controller/PreviewControllerTest.php
tests/Core/Controller/TwoFactorChallengeControllerTest.php
tests/Core/Controller/UserControllerTest.php
tests/Core/Controller/WipeControllerTest.php
tests/Core/Middleware/TwoFactorMiddlewareTest.php
tests/acceptance/features/core/NextcloudTestServerLocalApacheHelper.php
tests/acceptance/features/core/NextcloudTestServerLocalBuiltInHelper.php
tests/lib/Accounts/AccountsManagerTest.php
tests/lib/Accounts/HooksTest.php
tests/lib/Activity/ManagerTest.php
tests/lib/App/AppManagerTest.php
tests/lib/App/AppStore/Bundles/BundleBase.php
tests/lib/App/AppStore/Bundles/BundleFetcherTest.php
tests/lib/App/AppStore/Bundles/CoreBundleTest.php
tests/lib/App/AppStore/Bundles/EducationBundleTest.php
tests/lib/App/AppStore/Bundles/EnterpriseBundleTest.php
tests/lib/App/AppStore/Bundles/GroupwareBundleTest.php
tests/lib/App/AppStore/Bundles/SocialSharingBundleTest.php
tests/lib/App/AppStore/Fetcher/AppFetcherTest.php
tests/lib/App/AppStore/Fetcher/CategoryFetcherTest.php
tests/lib/App/AppStore/Fetcher/FetcherBase.php
tests/lib/App/AppStore/Version/VersionParserTest.php
tests/lib/App/CodeChecker/InfoCheckerTest.php
tests/lib/App/CompareVersionTest.php
tests/lib/App/DependencyAnalyzerTest.php
tests/lib/App/InfoParserTest.php
tests/lib/AppConfigTest.php
tests/lib/AppFramework/AppTest.php
tests/lib/AppFramework/Controller/AuthPublicShareControllerTest.php
tests/lib/AppFramework/Controller/ControllerTest.php
tests/lib/AppFramework/Controller/PublicShareControllerTest.php
tests/lib/AppFramework/Db/EntityTest.php
tests/lib/AppFramework/Db/MapperTest.php
tests/lib/AppFramework/Db/MapperTestUtility.php
tests/lib/AppFramework/Db/QBMapperTest.php
tests/lib/AppFramework/DependencyInjection/DIContainerTest.php
tests/lib/AppFramework/DependencyInjection/DIIntergrationTests.php
tests/lib/AppFramework/Http/ContentSecurityPolicyTest.php
tests/lib/AppFramework/Http/DataResponseTest.php
tests/lib/AppFramework/Http/DispatcherTest.php
tests/lib/AppFramework/Http/DownloadResponseTest.php
tests/lib/AppFramework/Http/EmptyContentSecurityPolicyTest.php
tests/lib/AppFramework/Http/EmptyFeaturePolicyTest.php
tests/lib/AppFramework/Http/FeaturePolicyTest.php
tests/lib/AppFramework/Http/FileDisplayResponseTest.php
tests/lib/AppFramework/Http/HttpTest.php
tests/lib/AppFramework/Http/JSONResponseTest.php
tests/lib/AppFramework/Http/RedirectResponseTest.php
tests/lib/AppFramework/Http/RequestTest.php
tests/lib/AppFramework/Http/ResponseTest.php
tests/lib/AppFramework/Http/StreamResponseTest.php
tests/lib/AppFramework/Http/TemplateResponseTest.php
tests/lib/AppFramework/Middleware/AdditionalScriptsMiddlewareTest.php
tests/lib/AppFramework/Middleware/MiddlewareDispatcherTest.php
tests/lib/AppFramework/Middleware/MiddlewareTest.php
tests/lib/AppFramework/Middleware/OCSMiddlewareTest.php
tests/lib/AppFramework/Middleware/PublicShare/PublicShareMiddlewareTest.php
tests/lib/AppFramework/Middleware/Security/BruteForceMiddlewareTest.php
tests/lib/AppFramework/Middleware/Security/CORSMiddlewareTest.php
tests/lib/AppFramework/Middleware/Security/CSPMiddlewareTest.php
tests/lib/AppFramework/Middleware/Security/FeaturePolicyMiddlewareTest.php
tests/lib/AppFramework/Middleware/Security/PasswordConfirmationMiddlewareTest.php
tests/lib/AppFramework/Middleware/Security/RateLimitingMiddlewareTest.php
tests/lib/AppFramework/Middleware/Security/SameSiteCookieMiddlewareTest.php
tests/lib/AppFramework/Middleware/Security/SecurityMiddlewareTest.php
tests/lib/AppFramework/Middleware/SessionMiddlewareTest.php
tests/lib/AppFramework/Utility/SimpleContainerTest.php
tests/lib/Authentication/Listeners/RemoteWipeActivityListenerTest.php
tests/lib/Authentication/Listeners/RemoteWipeEmailListenerTest.php
tests/lib/Authentication/Listeners/RemoteWipeNotificationsListenerTest.php
tests/lib/Authentication/Login/ALoginCommandTest.php
tests/lib/Authentication/Login/ClearLostPasswordTokensCommandTest.php
tests/lib/Authentication/Login/CompleteLoginCommandTest.php
tests/lib/Authentication/Login/CreateSessionTokenCommandTest.php
tests/lib/Authentication/Login/EmailLoginCommandTest.php
tests/lib/Authentication/Login/FinishRememberedLoginCommandTest.php
tests/lib/Authentication/Login/LoggedInCheckCommandTest.php
tests/lib/Authentication/Login/PreLoginHookCommandTest.php
tests/lib/Authentication/Login/SetUserTimezoneCommandTest.php
tests/lib/Authentication/Login/TwoFactorCommandTest.php
tests/lib/Authentication/Login/UidLoginCommandTest.php
tests/lib/Authentication/Login/UpdateLastPasswordConfirmCommandTest.php
tests/lib/Authentication/Login/UserDisabledCheckCommandTest.php
tests/lib/Authentication/LoginCredentials/CredentialsTest.php
tests/lib/Authentication/LoginCredentials/StoreTest.php
tests/lib/Authentication/Token/DefaultTokenCleanupJobTest.php
tests/lib/Authentication/Token/DefaultTokenMapperTest.php
tests/lib/Authentication/Token/DefaultTokenProviderTest.php
tests/lib/Authentication/Token/ManagerTest.php
tests/lib/Authentication/Token/PublicKeyTokenMapperTest.php
tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php
tests/lib/Authentication/Token/RemoteWipeTest.php
tests/lib/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDaoTest.php
tests/lib/Authentication/TwoFactorAuth/ManagerTest.php
tests/lib/Authentication/TwoFactorAuth/MandatoryTwoFactorTest.php
tests/lib/Authentication/TwoFactorAuth/ProviderLoaderTest.php
tests/lib/Authentication/TwoFactorAuth/ProviderManagerTest.php
tests/lib/Authentication/TwoFactorAuth/RegistryTest.php
tests/lib/AutoLoaderTest.php
tests/lib/Avatar/AvatarManagerTest.php
tests/lib/Avatar/UserAvatarTest.php
tests/lib/BackgroundJob/JobListTest.php
tests/lib/BackgroundJob/JobTest.php
tests/lib/BackgroundJob/QueuedJobTest.php
tests/lib/BackgroundJob/TimedJobTest.php
tests/lib/Cache/CappedMemoryCacheTest.php
tests/lib/Cache/FileCacheTest.php
tests/lib/Cache/TestCache.php
tests/lib/Calendar/ManagerTest.php
tests/lib/Calendar/Resource/ManagerTest.php
tests/lib/Calendar/Room/ManagerTest.php
tests/lib/CapabilitiesManagerTest.php
tests/lib/Collaboration/Collaborators/GroupPluginTest.php
tests/lib/Collaboration/Collaborators/LookupPluginTest.php
tests/lib/Collaboration/Collaborators/MailPluginTest.php
tests/lib/Collaboration/Collaborators/RemotePluginTest.php
tests/lib/Collaboration/Collaborators/SearchResultTest.php
tests/lib/Collaboration/Collaborators/SearchTest.php
tests/lib/Collaboration/Collaborators/UserPluginTest.php
tests/lib/Command/AsyncBusTest.php
tests/lib/Command/CronBusTest.php
tests/lib/Command/Integrity/SignAppTest.php
tests/lib/Command/Integrity/SignCoreTest.php
tests/lib/Comments/ManagerTest.php
tests/lib/ConfigTest.php
tests/lib/Contacts/ContactsMenu/ActionFactoryTest.php
tests/lib/Contacts/ContactsMenu/ActionProviderStoreTest.php
tests/lib/Contacts/ContactsMenu/Actions/LinkActionTest.php
tests/lib/Contacts/ContactsMenu/ContactsStoreTest.php
tests/lib/Contacts/ContactsMenu/EntryTest.php
tests/lib/Contacts/ContactsMenu/ManagerTest.php
tests/lib/Contacts/ContactsMenu/Providers/EMailproviderTest.php
tests/lib/ContactsManagerTest.php
tests/lib/DB/ConnectionTest.php
tests/lib/DB/DBSchemaTest.php
tests/lib/DB/LegacyDBTest.php
tests/lib/DB/MDB2SchemaManagerTest.php
tests/lib/DB/MigrationsTest.php
tests/lib/DB/MigratorTest.php
tests/lib/DB/MySqlMigrationTest.php
tests/lib/DB/QueryBuilder/ExpressionBuilderDBTest.php
tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php
tests/lib/DB/QueryBuilder/FunctionBuilderTest.php
tests/lib/DB/QueryBuilder/QueryBuilderTest.php
tests/lib/DB/QueryBuilder/QuoteHelperTest.php
tests/lib/DB/SchemaDiffTest.php
tests/lib/DB/SqliteMigrationTest.php
tests/lib/DateTimeFormatterTest.php
tests/lib/Diagnostics/EventLoggerTest.php
tests/lib/Diagnostics/QueryLoggerTest.php
tests/lib/Encryption/DecryptAllTest.php
tests/lib/Encryption/EncryptionWrapperTest.php
tests/lib/Encryption/Keys/StorageTest.php
tests/lib/Encryption/ManagerTest.php
tests/lib/Encryption/UpdateTest.php
tests/lib/Encryption/UtilTest.php
tests/lib/Federation/CloudIdManagerTest.php
tests/lib/Files/AppData/AppDataTest.php
tests/lib/Files/AppData/FactoryTest.php
tests/lib/Files/Cache/CacheTest.php
tests/lib/Files/Cache/HomeCacheTest.php
tests/lib/Files/Cache/MoveFromCacheTraitTest.php
tests/lib/Files/Cache/PropagatorTest.php
tests/lib/Files/Cache/QuerySearchHelperTest.php
tests/lib/Files/Cache/ScannerTest.php
tests/lib/Files/Cache/UpdaterLegacyTest.php
tests/lib/Files/Cache/UpdaterTest.php
tests/lib/Files/Cache/WatcherTest.php
tests/lib/Files/Cache/Wrapper/CacheJailTest.php
tests/lib/Files/Cache/Wrapper/CachePermissionsMaskTest.php
tests/lib/Files/Config/UserMountCacheTest.php
tests/lib/Files/EtagTest.php
tests/lib/Files/FileInfoTest.php
tests/lib/Files/FilesystemTest.php
tests/lib/Files/Mount/ManagerTest.php
tests/lib/Files/Mount/ObjectHomeMountProviderTest.php
tests/lib/Files/Node/HookConnectorTest.php
tests/lib/Files/Node/IntegrationTest.php
tests/lib/Files/Node/NodeTest.php
tests/lib/Files/Node/RootTest.php
tests/lib/Files/ObjectStore/NoopScannerTest.php
tests/lib/Files/ObjectStore/ObjectStoreStorageTest.php
tests/lib/Files/PathVerificationTest.php
tests/lib/Files/SimpleFS/SimpleFileTest.php
tests/lib/Files/SimpleFS/SimpleFolderTest.php
tests/lib/Files/Storage/CommonTest.php
tests/lib/Files/Storage/CopyDirectoryTest.php
tests/lib/Files/Storage/HomeTest.php
tests/lib/Files/Storage/LocalTest.php
tests/lib/Files/Storage/Wrapper/AvailabilityTest.php
tests/lib/Files/Storage/Wrapper/EncodingTest.php
tests/lib/Files/Storage/Wrapper/EncryptionTest.php
tests/lib/Files/Storage/Wrapper/JailTest.php
tests/lib/Files/Storage/Wrapper/PermissionsMaskTest.php
tests/lib/Files/Storage/Wrapper/QuotaTest.php
tests/lib/Files/Storage/Wrapper/WrapperTest.php
tests/lib/Files/Type/DetectionTest.php
tests/lib/Files/Type/LoaderTest.php
tests/lib/Files/Utils/ScannerTest.php
tests/lib/Files/ViewTest.php
tests/lib/GlobalScale/ConfigTest.php
tests/lib/Group/DatabaseTest.php
tests/lib/Group/Dummy.php
tests/lib/Group/GroupTest.php
tests/lib/Group/ManagerTest.php
tests/lib/Group/MetaDataTest.php
tests/lib/HelperStorageTest.php
tests/lib/Hooks/BasicEmitterTest.php
tests/lib/Hooks/LegacyEmitterTest.php
tests/lib/Http/Client/ClientTest.php
tests/lib/Http/Client/ResponseTest.php
tests/lib/ImageTest.php
tests/lib/InitialStateServiceTest.php
tests/lib/InstallerTest.php
tests/lib/IntegrityCheck/CheckerTest.php
tests/lib/IntegrityCheck/Helpers/AppLocatorTest.php
tests/lib/IntegrityCheck/Helpers/EnvironmentHelperTest.php
tests/lib/IntegrityCheck/Helpers/FileAccessHelperTest.php
tests/lib/IntegrityCheck/Iterator/ExcludeFileByNameFilterIteratorTest.php
tests/lib/L10N/FactoryTest.php
tests/lib/L10N/LanguageIteratorTest.php
tests/lib/LargeFileHelperGetFileSizeTest.php
tests/lib/LargeFileHelperTest.php
tests/lib/LegacyHelperTest.php
tests/lib/Lock/DBLockingProviderTest.php
tests/lib/Lock/LockingProvider.php
tests/lib/Lock/MemcacheLockingProviderTest.php
tests/lib/Lockdown/Filesystem/NoFSTest.php
tests/lib/Lockdown/Filesystem/NullCacheTest.php
tests/lib/Lockdown/Filesystem/NullStorageTest.php
tests/lib/Lockdown/LockdownManagerTest.php
tests/lib/Log/FileTest.php
tests/lib/Log/LogFactoryTest.php
tests/lib/LoggerTest.php
tests/lib/Mail/EMailTemplateTest.php
tests/lib/Mail/MailerTest.php
tests/lib/Mail/MessageTest.php
tests/lib/Memcache/APCuTest.php
tests/lib/Memcache/ArrayCacheTest.php
tests/lib/Memcache/Cache.php
tests/lib/Memcache/MemcachedTest.php
tests/lib/Memcache/RedisTest.php
tests/lib/Migration/BackgroundRepairTest.php
tests/lib/NavigationManagerTest.php
tests/lib/Notification/ActionTest.php
tests/lib/Notification/ManagerTest.php
tests/lib/Notification/NotificationTest.php
tests/lib/OCS/DiscoveryServiceTest.php
tests/lib/OCS/ProviderTest.php
tests/lib/Preview/BackgroundCleanupJobTest.php
tests/lib/Preview/BitmapTest.php
tests/lib/Preview/GeneratorTest.php
tests/lib/Preview/HEICTest.php
tests/lib/Preview/ImageTest.php
tests/lib/Preview/MP3Test.php
tests/lib/Preview/MovieTest.php
tests/lib/Preview/OfficeTest.php
tests/lib/Preview/Provider.php
tests/lib/Preview/SVGTest.php
tests/lib/Preview/TXTTest.php
tests/lib/Remote/Api/OCSTest.php
tests/lib/Remote/InstanceTest.php
tests/lib/Repair/CleanTagsTest.php
tests/lib/Repair/ClearFrontendCachesTest.php
tests/lib/Repair/ClearGeneratedAvatarCacheTest.php
tests/lib/Repair/NC11/FixMountStoragesTest.php
tests/lib/Repair/OldGroupMembershipSharesTest.php
tests/lib/Repair/RepairCollationTest.php
tests/lib/Repair/RepairInvalidSharesTest.php
tests/lib/Repair/RepairMimeTypesTest.php
tests/lib/Repair/RepairSqliteAutoincrementTest.php
tests/lib/RepairStepTest.php
tests/lib/Security/Bruteforce/CapabilitiesTest.php
tests/lib/Security/Bruteforce/ThrottlerTest.php
tests/lib/Security/CSP/ContentSecurityPolicyManagerTest.php
tests/lib/Security/CSP/ContentSecurityPolicyNonceManagerTest.php
tests/lib/Security/CSRF/CsrfTokenGeneratorTest.php
tests/lib/Security/CSRF/CsrfTokenManagerTest.php
tests/lib/Security/CSRF/TokenStorage/SessionStorageTest.php
tests/lib/Security/CertificateManagerTest.php
tests/lib/Security/CertificateTest.php
tests/lib/Security/CredentialsManagerTest.php
tests/lib/Security/CryptoTest.php
tests/lib/Security/FeaturePolicy/FeaturePolicyManagerTest.php
tests/lib/Security/HasherTest.php
tests/lib/Security/IdentityProof/KeyTest.php
tests/lib/Security/IdentityProof/ManagerTest.php
tests/lib/Security/IdentityProof/SignerTest.php
tests/lib/Security/RateLimiting/Backend/MemoryCacheTest.php
tests/lib/Security/RateLimiting/LimiterTest.php
tests/lib/Security/SecureRandomTest.php
tests/lib/Security/TrustedDomainHelperTest.php
tests/lib/ServerTest.php
tests/lib/Session/CryptoSessionDataTest.php
tests/lib/Session/CryptoWrappingTest.php
tests/lib/Session/MemoryTest.php
tests/lib/Session/Session.php
tests/lib/Settings/ManagerTest.php
tests/lib/SetupTest.php
tests/lib/Share/ShareTest.php
tests/lib/Share20/DefaultShareProviderTest.php
tests/lib/Share20/LegacyHooksTest.php
tests/lib/Share20/ManagerTest.php
tests/lib/Share20/ShareHelperTest.php
tests/lib/Share20/ShareTest.php
tests/lib/SubAdminTest.php
tests/lib/Support/CrashReport/RegistryTest.php
tests/lib/Support/Subscription/RegistryTest.php
tests/lib/SystemTag/SystemTagManagerTest.php
tests/lib/SystemTag/SystemTagObjectMapperTest.php
tests/lib/TagsTest.php
tests/lib/TempManagerTest.php
tests/lib/Template/CSSResourceLocatorTest.php
tests/lib/Template/IconsCacherTest.php
tests/lib/Template/JSCombinerTest.php
tests/lib/Template/JSResourceLocatorTest.php
tests/lib/Template/ResourceLocatorTest.php
tests/lib/Template/SCSSCacherTest.php
tests/lib/TemplateFunctionsTest.php
tests/lib/TestCase.php
tests/lib/Traits/EncryptionTrait.php
tests/lib/Updater/ChangesCheckTest.php
tests/lib/Updater/VersionCheckTest.php
tests/lib/UpdaterTest.php
tests/lib/UrlGeneratorTest.php
tests/lib/User/DatabaseTest.php
tests/lib/User/Dummy.php
tests/lib/User/ManagerTest.php
tests/lib/User/SessionTest.php
tests/lib/User/UserTest.php
tests/lib/UtilCheckServerTest.php
tests/lib/UtilTest.php
tests/phpunit-autotest.xml
tests/startsessionlistener.php

index 3a3f25933f44a1911038add7de560df95a37a603..c7295452482101bc857038c317a936f280e35bdb 100644 (file)
@@ -39,7 +39,7 @@ class SecurityTest extends TestCase {
        /** @var IUser|\PHPUnit_Framework_MockObject_MockObject */
        private $user;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->logger = $this->createMock(ILogger::class);
index 4454101bb382ca552a70694ae335a536f2762108..162cd2eb747b19e1a6cdde6184153065c55063bd 100644 (file)
@@ -63,7 +63,7 @@ class ListenerTest extends TestCase {
        /** @var IShareHelper|\PHPUnit_Framework_MockObject_MockObject */
        protected $shareHelper;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->activityManager = $this->createMock(IManager::class);
index 6ff3bc54b0d2ec70cdfeca14615308dc2d951824..2117b79350f011a39afdb748dc07de1e38aa683c 100644 (file)
@@ -35,13 +35,13 @@ use Test\TestCase;
  * @package OCA\Comments\Tests\Unit\AppInfo
  */
 class ApplicationTest extends TestCase {
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                \OC::$server->getUserManager()->createUser('dummy', '456');
                \OC::$server->getUserSession()->setUser(\OC::$server->getUserManager()->get('dummy'));
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                \OC::$server->getUserManager()->get('dummy')->delete();
                parent::tearDown();
        }
index 0cc3e3d4b6164d8cf843cf61c21bad0a52c188c8..727014b8fcbd5d2f29b6a965bef99521d7e4e9b0 100644 (file)
@@ -36,7 +36,7 @@ class CommentersSorterTest extends TestCase {
        /** @var  CommentersSorter */
        protected $sorter;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->commentsManager = $this->createMock(ICommentsManager::class);
index 9df81f01b0257bcac9384bd386c27fd8df80f96c..029a04dcb8027b2f0bce13bcf3360418c79999b7 100644 (file)
@@ -59,7 +59,7 @@ class NotificationsTest extends TestCase {
        /** @var IURLGenerator|\PHPUnit_Framework_MockObject_MockObject */
        protected $urlGenerator;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->commentsManager = $this->createMock(ICommentsManager::class);
index b27b851cc5e7daede6e76927b25501844c1f2883..c9841a553fb07b08c6ed7d2e981fb8703fd93bab 100644 (file)
@@ -40,7 +40,7 @@ class EventHandlerTest extends TestCase {
        /** @var NotificationListener|\PHPUnit_Framework_MockObject_MockObject */
        protected $notificationListener;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->activityListener = $this->getMockBuilder(ActivityListener::class)
index ad2f34c7aab9a9768cf2a70f8b9d44726dbd7b78..4133daef3cef5e1540c1bc88a2482c544e5091d0 100644 (file)
@@ -34,7 +34,7 @@ class JSSettingsHelperTest extends TestCase {
        /** @var  JSSettingsHelper */
        protected $helper;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->c = $this->createMock(IServerContainer::class);
index e31b227bce88f06a0dcf676937412530eb0d8df2..8d89206268871ad396c398f4618df0ff36a8c037 100644 (file)
@@ -46,7 +46,7 @@ class ListenerTest extends TestCase {
        /** @var  Listener */
        protected $listener;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->notificationManager = $this->createMock(\OCP\Notification\IManager::class);
index d008c4c312121691d0759777821729955fcf5c26..1fb1cd7736e3b93a8d0606a060fc1d969dfeebcc 100644 (file)
@@ -62,7 +62,7 @@ class NotifierTest extends TestCase {
        /** @var string */
        protected $lc = 'tlh_KX';
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->l10nFactory = $this->createMock(IFactory::class);
index 07eb967027925027245b8df4c98df76502148393..e5a2bfa862f46c0d23d3d34637594f2d0be309f9 100644 (file)
@@ -40,7 +40,7 @@ class AvatarHomeTest extends TestCase {
        /** @var IAvatarManager | \PHPUnit_Framework_MockObject_MockObject */
        private $avatarManager;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->avatarManager = $this->createMock(IAvatarManager::class);
                $this->home = new AvatarHome(['uri' => 'principals/users/admin'], $this->avatarManager);
index 2d80b5bf0eacf76fae5d4733d89963135d052635..b516e26a8c645274f353d19f48229bb1db16dbfa 100644 (file)
@@ -41,7 +41,7 @@ class CleanupInvitationTokenJobTest extends TestCase {
        /** @var \OCA\DAV\BackgroundJob\GenerateBirthdayCalendarBackgroundJob */
        private $backgroundJob;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->dbConnection = $this->createMock(IDBConnection::class);
index c3b4b7e54c24a6d9a65c01e6ea9848df1a08b0cf..c55ffcf72c01751b9db78dece991e26b2d4d4422 100644 (file)
@@ -40,7 +40,7 @@ class EventReminderJobTest extends TestCase {
        /** @var EventReminderJob|\PHPUnit\Framework\MockObject\MockObject */
        private $backgroundJob;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->reminderService = $this->createMock(ReminderService::class);
index acf1306a6320a079dc3cff0e2b345c29ae470a44..f00d083b79637d698eddd5ee25c84bee8f6a41f6 100644 (file)
@@ -38,7 +38,7 @@ class GenerateBirthdayCalendarBackgroundJobTest extends TestCase {
        /** @var \OCA\DAV\BackgroundJob\GenerateBirthdayCalendarBackgroundJob */
        private $backgroundJob;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->birthdayService = $this->createMock(BirthdayService::class);
index a26378038d13de9f1431b692179f6f037e9a69f4..5af694fda89ae21e94fa6ea5c1cfddca86edd516 100644 (file)
@@ -56,7 +56,7 @@ class RefreshWebcalJobTest extends TestCase {
        /** @var IJobList | \PHPUnit_Framework_MockObject_MockObject */
        private $jobList;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->caldavBackend = $this->createMock(CalDavBackend::class);
index a08d3824d7f871ce197e3eae7737d0b11c9dbbaf..c71a80b369eff61637ffc82c3b3e881afeaa6210 100644 (file)
@@ -49,7 +49,7 @@ class RegisterRegenerateBirthdayCalendarsTest extends TestCase {
        /** @var RegisterRegenerateBirthdayCalendars */
        private $backgroundJob;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->time = $this->createMock(ITimeFactory::class);
index e451570b73fbd49226fe7ce401faed75064c56b7..37fccc3d4ae0d0989eaf7d77e5f25a9a69271d90 100644 (file)
@@ -47,7 +47,7 @@ class UpdateCalendarResourcesRoomsBackgroundJobTest extends TestCase {
        /** @var CalDavBackend | \PHPUnit_Framework_MockObject_MockObject */
        private $calDavBackend;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->resourceManager = $this->createMock(IResourceManager::class);
@@ -59,7 +59,7 @@ class UpdateCalendarResourcesRoomsBackgroundJobTest extends TestCase {
                        $this->calDavBackend);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $query = self::$realDatabase->getQueryBuilder();
                $query->delete('calendar_resources')->execute();
                $query->delete('calendar_resources_md')->execute();
index 9f9a7c01337c89a30888fbc7f716920e3353714f..3facbeb954db0c9f1436f288bafbaaba08edd4bd 100644 (file)
@@ -72,7 +72,7 @@ abstract class AbstractCalDavBackend extends TestCase {
        const UNIT_TEST_GROUP = 'principals/groups/caldav-unit-test-group';
        const UNIT_TEST_GROUP2 = 'principals/groups/caldav-unit-test-group2';
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->userManager = $this->createMock(IUserManager::class);
@@ -106,7 +106,7 @@ abstract class AbstractCalDavBackend extends TestCase {
                $this->cleanUpBackend();
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                $this->cleanUpBackend();
                parent::tearDown();
        }
index 3b4e0038b59d045e7401cf232a381b6d81d5eef5..075974586817fbc406923db8938098f6427de028 100644 (file)
@@ -44,7 +44,7 @@ class BackendTest extends TestCase {
        /** @var IUserSession|\PHPUnit_Framework_MockObject_MockObject */
        protected $userSession;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->activityManager = $this->createMock(IManager::class);
                $this->groupManager = $this->createMock(IGroupManager::class);
index 1c31508255a83c1a722036748b5a73d8e3cfc87d..b19f48762b5dcdf88dac48d231fd9745c54c8815 100644 (file)
@@ -37,7 +37,7 @@ class CalendarTest extends TestCase {
        /** @var IFilter|\PHPUnit_Framework_MockObject_MockObject */
        protected $filter;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->url = $this->createMock(IURLGenerator::class);
                $l = $this->createMock(IL10N::class);
index f060e7a0b37a1163530df67a1ddb1dbe17d83cee..f8b505f6c51dccb9b929aac639151c7a30315800 100644 (file)
@@ -37,7 +37,7 @@ class TodoTest extends TestCase {
        /** @var IFilter|\PHPUnit_Framework_MockObject_MockObject */
        protected $filter;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->url = $this->createMock(IURLGenerator::class);
                $l = $this->createMock(IL10N::class);
index db4d3e55fd897a45080780bebdef7d238624e8e7..64f9b6f86af037a312efaeebd167966c851f38b7 100644 (file)
@@ -43,7 +43,7 @@ class BaseTest extends TestCase {
        /** @var IProvider|Base|\PHPUnit_Framework_MockObject_MockObject */
        protected $provider;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->userManager = $this->createMock(IUserManager::class);
                $this->groupManager = $this->createMock(IGroupManager::class);
index 44bf9237b2f747d01e8bf12e0d1e5851899f86be..d2935850e51eb0fd1db1745e179e48ece195596b 100644 (file)
@@ -46,7 +46,7 @@ class EnablePluginTest extends TestCase {
 
        protected $response;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->server = $this->createMock(\Sabre\DAV\Server::class);
index a7981cfa1595d1682d0069f96c12482eefb8bc56..c93e436b1a15cbfd621fa7e0f453e01e8ba6b730 100644 (file)
@@ -39,7 +39,7 @@ class CalendarHomeTest extends TestCase {
        /** @var CalendarHome */
        private $calendarHome;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->backend = $this->createMock(CalDavBackend::class);
index ca3256773b3aa5aee6994ed74a771826a40c475b..432447ef5f7cd0227641216d8e683b893cb6435c 100644 (file)
@@ -41,7 +41,7 @@ class CalendarImplTest extends \Test\TestCase {
        /** @var CalDavBackend | \PHPUnit_Framework_MockObject_MockObject */
        private $backend;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->calendar = $this->createMock(Calendar::class);
index 1831840610cb86c8183af438d89955b7d7a177d4..89fe6972f9db2afeec840918c7bf7d082b982d06 100644 (file)
@@ -45,7 +45,7 @@ class CalendarManagerTest extends \Test\TestCase {
        /** @var CalendarManager */
        private $manager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->backend = $this->createMock(CalDavBackend::class);
                $this->l10n = $this->createMock(IL10N::class);
index 7ce43f40916f4d4742742772e7a99d6c8960adea..8af6524b8aad8dee71ea47b154b4b719ab1f3e67 100644 (file)
@@ -43,7 +43,7 @@ class CalendarTest extends TestCase {
        /** @var IConfig */
        protected $config;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->l10n = $this->getMockBuilder(IL10N::class)
                        ->disableOriginalConstructor()->getMock();
index be5dc33fc615afa48eaaada2f5c135fcd603b34b..3da6d8a9b9b7f193298ee82e83186c2629ac8690 100644 (file)
@@ -34,7 +34,7 @@ class OutboxTest extends TestCase {
        /** @var Outbox */
        private $outbox;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(IConfig::class);
index 87bf69c2805d1c31662aa48886070f02e4fb2d37..65b135cf905bc6f5aa6c63b400b743470ed857fe 100644 (file)
@@ -30,7 +30,7 @@ class PluginTest extends TestCase  {
        /** @var Plugin */
        private $plugin;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->plugin = new Plugin();
index 51977313ed44ba783957b15fffdc85b36461e319..0bbfe997304e5e66962822ff089fc51a0e08f37b 100644 (file)
@@ -72,7 +72,7 @@ class PublicCalendarRootTest extends TestCase {
        /** @var ILogger */
        private $logger;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $db = \OC::$server->getDatabaseConnection();
@@ -108,7 +108,7 @@ class PublicCalendarRootTest extends TestCase {
                        $this->l10n, $this->config);
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                parent::tearDown();
 
                if (is_null($this->backend)) {
index ed803c67dd3bd5bea4a08554ce0f1dff3a041d20..728905e6e6c4bf33798cc559df965ddee8c9c13c 100644 (file)
@@ -48,7 +48,7 @@ class PluginTest extends TestCase {
        /** @var IURLGenerator | \PHPUnit_Framework_MockObject_MockObject */
        private $urlGenerator;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->config = $this->getMockBuilder(IConfig::class)->
index dae3cb74e24fb23ae1299c506d14a43315231129..9ba3b15b23c5042e1863f60b2902ca4977298835 100644 (file)
@@ -42,7 +42,7 @@ class BackendTest extends TestCase {
        /** @var ITimeFactory|\PHPUnit\Framework\MockObject\MockObject */
        private $timeFactory;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $query = self::$realDatabase->getQueryBuilder();
@@ -56,7 +56,7 @@ class BackendTest extends TestCase {
                $this->createRemindersTestSet();
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $query = self::$realDatabase->getQueryBuilder();
                $query->delete('calendar_reminders')->execute();
                $query->delete('calendarobjects')->execute();
index 889ac867315842870540a38e8f4eeed933c8cd1e..305cf4866dbb88cb7de9bfada1ec9c5544a44b6f 100644 (file)
@@ -68,7 +68,7 @@ abstract class AbstractNotificationProviderTest extends TestCase {
         */
        protected $user;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->logger = $this->createMock(ILogger::class);
index a288907b4bab6baf9ebbb8c569ddec31a7480a4b..2654ac8b45c8c4d6037850641f965d64df2bd994 100644 (file)
@@ -61,7 +61,7 @@ class EmailProviderTest extends AbstractNotificationProviderTest {
        /** @var IMailer|\PHPUnit\Framework\MockObject\MockObject */
        private $mailer;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->mailer = $this->createMock(IMailer::class);
index 346faf1a65ec9e063393dd776181ad82cfc76447..c2a95278b3faa843334f350d1db6f041e3990de0 100644 (file)
@@ -61,7 +61,7 @@ class PushProviderTest extends AbstractNotificationProviderTest {
     /** @var ITimeFactory|\PHPUnit\Framework\MockObject\MockObject */
     private $timeFactory;
 
-    public function setUp() {
+    public function setUp(): void {
         parent::setUp();
 
         $this->config = $this->createMock(IConfig::class);
index d55f15ee5ae1f31d7516ef542c6e9563b553a483..9eecc37fb1a1ff753681cbce1412475dfa356188 100644 (file)
@@ -41,7 +41,7 @@ class NotificationProviderManagerTest extends TestCase {
        /**
         * @throws \OCP\AppFramework\QueryException
         */
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->providerManager = new NotificationProviderManager();
index 8d38617ad2aadc7f2485728bd3d00ea4b1d17ed7..6bb6a8be1c831cc735a23c81b4bb68127a8474f7 100644 (file)
@@ -50,7 +50,7 @@ class NotifierTest extends TestCase {
        /** @var ITimeFactory|\PHPUnit\Framework\MockObject\MockObject */
        protected $timeFactory;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->urlGenerator = $this->createMock(IURLGenerator::class);
index 73f5ddde15d4a379cdbb26a419b1eca248b4089d..503478acc01878139b28d810668e5ff5c5c18657 100644 (file)
@@ -184,7 +184,7 @@ END:VEVENT
 END:VCALENDAR
 EOD;
 
-    public function setUp() {
+    public function setUp(): void {
                parent::setUp();
 
         $this->backend = $this->createMock(Backend::class);
index ea2a752022768061ab650a4908284c2c439da2bf..5f59af260c1441f2c32353018d6e6de4544e5527 100644 (file)
@@ -64,7 +64,7 @@ abstract class AbstractPrincipalBackendTest extends TestCase {
        /** @var string */
        protected $expectedCUType;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->userSession = $this->createMock(IUserSession::class);
@@ -73,7 +73,7 @@ abstract class AbstractPrincipalBackendTest extends TestCase {
                $this->proxyMapper = $this->createMock(ProxyMapper::class);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $query = self::$realDatabase->getQueryBuilder();
 
                $query->delete('calendar_resources')->execute();
index ef71cd3b8d7ef5d6b0d2eeeb60e6c067d64e8b94..5d9e3e8455c5f66ad474564ec507958df5df62b9 100644 (file)
@@ -25,7 +25,7 @@ namespace OCA\DAV\Tests\unit\CalDAV\ResourceBooking;
 use OCA\DAV\CalDAV\ResourceBooking\ResourcePrincipalBackend;
 
 Class ResourcePrincipalBackendTest extends AbstractPrincipalBackendTest {
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->principalBackend = new ResourcePrincipalBackend(self::$realDatabase,
index 92788f0d7a84431986e99c9cac51c6bf39425ab7..34fa8e38f14b6e5c3a10d95db33350282722595c 100644 (file)
@@ -25,7 +25,7 @@ namespace OCA\DAV\Tests\unit\CalDAV\ResourceBooking;
 use OCA\DAV\CalDAV\ResourceBooking\RoomPrincipalBackend;
 
 Class RoomPrincipalBackendTest extends AbstractPrincipalBackendTest {
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->principalBackend = new RoomPrincipalBackend(self::$realDatabase,
index 967f3a514816f47798668f5a0a589b1391354311..58342db12f25f5cafb2dff563d67265b505e2b69 100644 (file)
@@ -48,7 +48,7 @@ use Test\TestCase;
 
 class IMipPluginTest extends TestCase {
 
-        public function setUp() {
+        public function setUp(): void {
                $this->mailMessage = $this->createMock(IMessage::class);
                $this->mailMessage->method('setFrom')->willReturn($this->mailMessage);
                $this->mailMessage->method('setReplyTo')->willReturn($this->mailMessage);
index ff6c0837c7ae8acc8b44da86f21b5100965c1d21..a489839fc828df93b4ed2a115196cf347478bd30 100644 (file)
@@ -36,7 +36,7 @@ class PluginTest extends TestCase  {
        /** @var Server|\PHPUnit_Framework_MockObject_MockObject */
        private $server;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->server = $this->createMock(Server::class);
index 12eb74259fc28dee45a78510a41b83180d17803c..414e4bc971aa7716684a2a737cf8d171ec38f5b9 100644 (file)
@@ -35,7 +35,7 @@ class SearchPluginTest extends TestCase {
        /** @var \OCA\DAV\CalDAV\Search\SearchPlugin $plugin */
        protected $plugin;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->server = $this->createMock(\Sabre\DAV\Server::class);
index 833221bd3ea25be85e039a9ff7e04bdf804f292a..02468e9686f870c60e7bda956369ee99df326806 100644 (file)
@@ -55,7 +55,7 @@ class AddressBookImplTest extends TestCase {
        /** @var  VCard | \PHPUnit_Framework_MockObject_MockObject */
        private $vCard;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->addressBookInfo = [
index 06ea1329ec00ff7511a4ebaa7b6828fe308a8297..6bfda95a70eede50d945714f87f745d873a06be1 100644 (file)
@@ -52,7 +52,7 @@ class BirthdayServiceTest extends TestCase {
        /** @var IL10N | \PHPUnit_Framework_MockObject_MockObject */
        private $l10n;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->calDav = $this->createMock(CalDavBackend::class);
index aa18ef63a5cda7e36087f89c5a3bdc05f2f7e46c..adc6df952ac89c67adea67aded2c679495ddc999 100644 (file)
@@ -121,7 +121,7 @@ class CardDavBackendTest extends TestCase {
                                                'N:TestNoUID;;;;'.PHP_EOL.
                                                'END:VCARD';
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->userManager = $this->createMock(IUserManager::class);
@@ -159,7 +159,7 @@ class CardDavBackendTest extends TestCase {
                $this->tearDown();
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                parent::tearDown();
 
                if (is_null($this->backend)) {
index dbb035a33d3a2611f94ac1fdb00fd5ac8b4c7515..8484d3447f2a050f5010cdbe56d27f778991b1a0 100644 (file)
@@ -39,7 +39,7 @@ class ConverterTest extends  TestCase {
        /** @var  AccountManager | PHPUnit_Framework_MockObject_MockObject */
        private $accountManager;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->accountManager = $this->createMock(AccountManager::class);
index f7b9137b48027cb1ef0cdfdd4e7b29fcb058b059..3fee2bcc8272f74ad6fd29f3ce5f10dd30810823 100644 (file)
@@ -53,7 +53,7 @@ class ImageExportPluginTest extends TestCase {
        /** @var PhotoCache|\PHPUnit_Framework_MockObject_MockObject */
        private $cache;
 
-       function setUp() {
+       function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(RequestInterface::class);
index c8dce8598a3958234eeaecf0dc203bc41be03784..105612b5cb9103d7a683c5ea439efb8a49e3cbc1 100644 (file)
@@ -44,7 +44,7 @@ class PluginTest extends TestCase {
        /** @var IShareable | \PHPUnit_Framework_MockObject_MockObject */
        private $book;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                
                /** @var Auth | \PHPUnit_Framework_MockObject_MockObject $authBackend */
index f2d315504b55b9c2026427f71df6e6c21ed1eba6..9cd028051336de000af0ddd2ba1d6feddf603f5a 100644 (file)
@@ -46,7 +46,7 @@ class ListCalendarsTest extends TestCase {
 
        const USERNAME = 'username';
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->userManager = $this->createMock(IUserManager::class);
index 94bcce03f3a26e0baa81538bfd6dfa4d2431a3e9..50c1a57e0a8104e57187d1bc83d324026cff0e10 100644 (file)
@@ -59,7 +59,7 @@ class MoveCalendarTest extends TestCase {
        /** @var MoveCalendar */
        private $command;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->userManager = $this->createMock(IUserManager::class);
index be55ac186b016df74f5a3b891e5e739ecc1f6fdf..1e415ceafcaa3156757f3480f91e15578c74f942 100644 (file)
@@ -37,7 +37,7 @@ use Test\TestCase;
  */
 class RemoveInvalidSharesTest extends TestCase {
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $db = \OC::$server->getDatabaseConnection();
 
index f38546f329e06697217993b869dc771518613291..3c230ccfd4383e89366729828d94fa2ef7502c99 100644 (file)
@@ -47,7 +47,7 @@ class CommentsNodeTest extends \Test\TestCase {
        protected $logger;
        protected $userSession;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->commentsManager = $this->getMockBuilder(ICommentsManager::class)
index c713a2d0cd79f523862e020d4fb8faefc5879154..537989d9404e2a8b6ca989cf93b50a8112f980f2 100644 (file)
@@ -54,7 +54,7 @@ class CommentsPluginTest extends \Test\TestCase {
        /** @var CommentsPluginImplementation */
        private $plugin;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->tree = $this->getMockBuilder(Tree::class)
                        ->disableOriginalConstructor()
index 2657e117b12b5dc82c9f344bc6a6336bc86df7bf..2097c7ef03a2a895001a251273a7d2880c307550 100644 (file)
@@ -45,7 +45,7 @@ class EntityCollectionTest extends \Test\TestCase {
        /** @var IUserSession|\PHPUnit_Framework_MockObject_MockObject */
        protected $userSession;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->commentsManager = $this->getMockBuilder(ICommentsManager::class)
index 9add05ee6306c98d5745336c801cd05c8aa26ce6..9286b46d2b0a95db89277bbf6e7f88fb15ec73ec 100644 (file)
@@ -46,7 +46,7 @@ class EntityTypeCollectionTest extends \Test\TestCase {
 
        protected $childMap = [];
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->commentsManager = $this->getMockBuilder(ICommentsManager::class)
index 2391d885bafdea1fd425b500d43f1815154f74a1..a0e72bcd42592ef8892de45ab27122c7ad339808 100644 (file)
@@ -53,7 +53,7 @@ class RootCollectionTest extends \Test\TestCase {
        /** @var \OCP\IUser|\PHPUnit_Framework_MockObject_MockObject */
        protected $user;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->user = $this->getMockBuilder(IUser::class)
index d23d9743e6b37a3eff3b2fec0142a1d0324fe910..150a0fc000f7f905e3b55b1f195b7591452ca8e3 100644 (file)
@@ -54,7 +54,7 @@ class PublicAuthTest extends \Test\TestCase {
        /** @var string */
        private $oldUser;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->session = $this->getMockBuilder(ISession::class)
@@ -77,7 +77,7 @@ class PublicAuthTest extends \Test\TestCase {
                $this->oldUser = \OC_User::getUser();
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                \OC_User::setIncognitoMode(false);
 
                // Set old user
index a449b8f9431f368e6bc25d24efe2956928ec7d16..447a10afc7927fcbf5b88085c92d8abc5c2e3c2b 100644 (file)
@@ -60,7 +60,7 @@ class AuthTest extends TestCase {
        /** @var Throttler */
        private $throttler;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->session = $this->getMockBuilder(ISession::class)
                        ->disableOriginalConstructor()->getMock();
index 9b3163d110631feb6f97428d76592e5a83c66524..2af8fc4c74d3cc07160b7d5fcaa4ad4aee368eb7 100644 (file)
@@ -45,7 +45,7 @@ class BearerAuthTest extends TestCase {
        /** @var BearerAuth */
        private $bearerAuth;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->userSession = $this->createMock(\OC\User\Session::class);
index 88baf981acc2e4ff0966af0773ff7333a63b8611..03c1ef1ff93202c438caca545d39ba59a6bb95cb 100644 (file)
@@ -42,7 +42,7 @@ class BlockLegacyClientPluginTest extends TestCase {
        /** @var BlockLegacyClientPlugin */
        private $blockLegacyClientVersionPlugin;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->config = $this->getMockBuilder(IConfig::class)
index 90bcb5f511c4d65f3ce58dc2a46cbc3bdc2bac97..b605aba2bc200577d86f7bd8ca650892ec922ccf 100644 (file)
@@ -40,7 +40,7 @@ class CommentsPropertiesPluginTest extends \Test\TestCase {
        protected $userSession;
        protected $server;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->commentsManager = $this->getMockBuilder(ICommentsManager::class)
index cc47a3a480526f558f01202036d56d5ebc775b9c..5685580c03ab9d5b1c902fbe5e438b2871643cfd 100644 (file)
@@ -45,7 +45,7 @@ class CopyEtagHeaderPluginTest extends TestCase {
        /** @var Server */
        private $server;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->server = new \Sabre\DAV\Server();
                $this->plugin = new CopyEtagHeaderPlugin();
index 1f58351622fa79a2db896557cc69fed0d5934209..69f67f607b23ab49c5e1deaa513ccee2dbfc3161 100644 (file)
@@ -67,7 +67,7 @@ class CustomPropertiesBackendTest extends \Test\TestCase {
         */
        private $user;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->server = new \Sabre\DAV\Server();
                $this->tree = $this->getMockBuilder(Tree::class)
@@ -90,7 +90,7 @@ class CustomPropertiesBackendTest extends \Test\TestCase {
                );
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                $connection = \OC::$server->getDatabaseConnection();
                $deleteStatement = $connection->prepare(
                        'DELETE FROM `*PREFIX*properties`' .
index a6dc1592db03bbec5d94e364b172bb905d1057b4..ee64eb5bce637119dbd8fb7059458557135d2c27 100644 (file)
@@ -75,7 +75,7 @@ class DirectoryTest extends \Test\TestCase {
        /** @var \OC\Files\FileInfo | \PHPUnit_Framework_MockObject_MockObject */
        private $info;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->view = $this->createMock('OC\Files\View');
index aec7032878874fa03651279285f390726b6dca29..1d22579bdd1abc2fb027c76efc7dd92968bf812f 100644 (file)
@@ -41,7 +41,7 @@ class DummyGetResponsePluginTest extends TestCase {
        /** @var DummyGetResponsePlugin */
        private $dummyGetResponsePlugin;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->dummyGetResponsePlugin = new DummyGetResponsePlugin();
index 0510e36a3621eadd74f46f2397fae6d09ac1daca..c2c808a8d95897148fabfa1f752864c3e5e09c26 100644 (file)
@@ -44,7 +44,7 @@ class FakeLockerPluginTest extends TestCase {
        /** @var FakeLockerPlugin */
        private $fakeLockerPlugin;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->fakeLockerPlugin = new FakeLockerPlugin();
        }
index 0157757a737c2d800be7dd39b88b178f1438043b..c41f3f65249b5d79e135e07ba2895a0f1d20a744 100644 (file)
@@ -62,7 +62,7 @@ class FileTest extends TestCase {
        /** @var IConfig | \PHPUnit_Framework_MockObject_MockObject */
        protected $config;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                unset($_SERVER['HTTP_OC_CHUNKED']);
                unset($_SERVER['CONTENT_LENGTH']);
@@ -78,7 +78,7 @@ class FileTest extends TestCase {
                $this->config = $this->getMockBuilder('\OCP\IConfig')->getMock();
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                $userManager = \OC::$server->getUserManager();
                $userManager->get($this->user)->delete();
                unset($_SERVER['HTTP_OC_CHUNKED']);
index 65130b64a84fc2961a0722e47772162320755dca..7322b71a7ec538abf5f92ef72ca821be387bcc30 100644 (file)
@@ -96,7 +96,7 @@ class FilesPluginTest extends TestCase {
         */
        private $previewManager;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->server = $this->getMockBuilder(Server::class)
                        ->disableOriginalConstructor()
index 37a72da0bf2dd4492831c33abb91669785a624c2..ea58c50480cfdd7425b6f54ae9640c8a567e7f99 100644 (file)
@@ -85,7 +85,7 @@ class FilesReportPluginTest extends \Test\TestCase {
        /** @var IAppManager|\PHPUnit_Framework_MockObject_MockObject * */
        private $appManager;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->tree = $this->getMockBuilder(Tree::class)
                        ->disableOriginalConstructor()
index 71448c1ba12566da17d47d1eb7726d85ecd581ec..a604757520d6673e173a5a2a8798ea8fc8cca619 100644 (file)
@@ -39,7 +39,7 @@ class MaintenancePluginTest extends TestCase {
        /** @var MaintenancePlugin */
        private $maintenancePlugin;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->config = $this->getMockBuilder(IConfig::class)->getMock();
index 54ec1f5aeeef091eb511fec4a33c1d9b7c082f2e..5320bd283026b3000beae7859de91266c203678e 100644 (file)
@@ -65,7 +65,7 @@ class PrincipalTest extends TestCase {
        /** @var ProxyMapper | \PHPUnit_Framework_MockObject_MockObject */
        private $proxyMapper;
 
-       public function setUp() {
+       public function setUp(): void {
                $this->userManager = $this->createMock(IUserManager::class);
                $this->groupManager = $this->createMock(IGroupManager::class);
                $this->shareManager = $this->createMock(IManager::class);
index 88b6316b6896b248d966f671e794965c89d9f086..d9fd17dcb7247cc982253063ad4dfc8f5eef5ebb 100644 (file)
@@ -35,7 +35,7 @@ use OCP\IConfig;
  * @package OCA\DAV\Tests\unit\Connector\Sabre\RequestTest
  */
 class PartFileInRootUploadTest extends UploadTest {
-       protected function setUp() {
+       protected function setUp(): void {
                $config = \OC::$server->getConfig();
                $mockConfig = $this->getMockBuilder(IConfig::class)
                        ->disableOriginalConstructor()
@@ -53,8 +53,8 @@ class PartFileInRootUploadTest extends UploadTest {
                parent::setUp();
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $this->restoreService('AllConfig');
-               return parent::tearDown();
+               parent::tearDown();
        }
 }
index fe31ccba13c76907327b5b6a571b01b79537a896..b7d88b2208e06d5046da0e2051a9ff105ea2c5e5 100644 (file)
@@ -52,7 +52,7 @@ abstract class RequestTestCase extends TestCase {
                return $stream;
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                unset($_SERVER['HTTP_OC_CHUNKED']);
index 6494dab2b19e34f97ad20f52ae64973fabdb072e..85d285f2c3b3398c22157f37c9c2a6649a447af2 100644 (file)
@@ -66,7 +66,7 @@ class SharesPluginTest extends \Test\TestCase {
         */
        private $plugin;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->server = new \Sabre\DAV\Server();
                $this->tree = $this->createMock(Tree::class);
index 0f6f4f6ef24d8fb9779a73a944ae9f611d048655..384441f44958265ac9820fb73826eaa355a2cf1a 100644 (file)
@@ -70,7 +70,7 @@ class TagsPluginTest extends \Test\TestCase {
         */
        private $plugin;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->server = new \Sabre\DAV\Server();
                $this->tree = $this->getMockBuilder(Tree::class)
index a105daa2608dc53ba225c4083e8f08b6176b8c9c..509ccb7e3535290842a949e002b8b82d59a91f16 100644 (file)
@@ -57,7 +57,7 @@ class BirthdayCalendarControllerTest extends TestCase {
        /** @var BirthdayCalendarController|\PHPUnit_Framework_MockObject_MockObject */
        private $controller;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(IConfig::class);
index e52c67ac30c4ad810134342dea3b78e48ef53e73..18034891dc8b053eb3b40d4cfedc1a4bca61e35a 100644 (file)
@@ -59,7 +59,7 @@ class DirectControllerTest extends TestCase {
        /** @var DirectController */
        private $controller;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->rootFolder = $this->createMock(IRootFolder::class);
index 7efb64e3dd455804ca6b41c7b7d065f43c66f084..44ca70b93420e7d28d03d2fccb88eb4fcf78ef06 100644 (file)
@@ -52,7 +52,7 @@ class InvitationResponseControllerTest extends TestCase {
        /** @var InvitationResponseServer|\PHPUnit_Framework_MockObject_MockObject */
        private $responseServer;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->dbConnection = $this->createMock(IDBConnection::class);
index a7731f8b0262f15043c8c1a9c6807f40b3ee0c99..d43e42b93b73001a86696be25a7d21f9f89bfbf3 100644 (file)
@@ -45,7 +45,7 @@ class CustomPropertiesBackendTest extends TestCase {
        /** @var CustomPropertiesBackend | \PHPUnit_Framework_MockObject_MockObject */
        private $backend;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->tree = $this->createMock(Tree::class);
index e5be0d75d5347a813f5183e719de9dd116dbf363..356299dab56739fbcd51195d9a217f860772556e 100644 (file)
@@ -49,7 +49,7 @@ class GroupPrincipalTest extends \Test\TestCase {
        /** @var GroupPrincipalBackend */
        private $connector;
 
-       public function setUp() {
+       public function setUp(): void {
                $this->groupManager = $this->createMock(IGroupManager::class);
                $this->userSession = $this->createMock(IUserSession::class);
                $this->shareManager = $this->createMock(IManager::class);
index 75baf8257dad572e993d2c38fc25c459eeeec4e0..6b64abc84420d82925afc41341a8b33ea5f2c63f 100644 (file)
@@ -46,7 +46,7 @@ class HookManagerTest extends TestCase {
        /** @var  EventDispatcherInterface | \PHPUnit_Framework_MockObject_MockObject  */
        private $eventDispatcher;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->eventDispatcher = $this->createMock(EventDispatcherInterface::class);
                $this->l10n = $this->createMock(IL10N::class);
index 96cabfab1ce15addfc6483fdbd47389e9d382598..38eb86baf272b0753e15339cc5692870294b8898 100644 (file)
@@ -44,7 +44,7 @@ class PluginTest extends TestCase {
        /** @var IShareable | \PHPUnit_Framework_MockObject_MockObject */
        private $book;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                
                /** @var Auth | \PHPUnit_Framework_MockObject_MockObject $authBackend */
index 2203e7c76860af09e62d7f614dcd94bf69eef6bc..c48b34bb1759b7747c546a662e73b134ef9a7c9f 100644 (file)
@@ -49,7 +49,7 @@ class DirectFileTest extends TestCase {
        /** @var DirectFile */
        private $directFile;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->direct = Direct::fromParams([
index dbbfb1fe1ffb7f783478c9e25574adb22badded4..8a976ff5dbf9c55e38297994a662134678daa579 100644 (file)
@@ -58,7 +58,7 @@ class DirectHomeTest extends TestCase {
        /** @var DirectHome */
        private $directHome;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->directMapper = $this->createMock(DirectMapper::class);
index 20a7566c2fde1defb03e6d58af07f3628ffce6b8..b524af5f39052ec0e9aa7d2b9c75541369c30c52 100644 (file)
@@ -72,7 +72,7 @@ class FileSearchBackendTest extends TestCase {
        /** @var Directory|\PHPUnit_Framework_MockObject_MockObject */
        private $davFolder;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->user = $this->createMock(IUser::class);
index 90e8b007833de1b75fa8171133c4f5dba5427914..f311b0f2cb366040c57897619cad5c75408883b5 100644 (file)
@@ -48,7 +48,7 @@ class FilesDropPluginTest extends TestCase {
        /** @var ResponseInterface|\PHPUnit_Framework_MockObject_MockObject */
        private $response;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->view = $this->createMock(View::class);
index 8f2aa7f8b570b8b219dd2d86bbcbee7169cfce4c..063bf4855019a4e3360e51ed394de97f75da39b6 100644 (file)
@@ -89,7 +89,7 @@ CREATED:20151214T091032Z
 END:VEVENT
 END:VCALENDAR';
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->logger = $this->createMock(ILogger::class);
index 1bd7ab4e232bca3370cdf8e201a3bad38b31fc20..460286ea76fb419d93098a288fe52639988cec3c 100644 (file)
@@ -41,7 +41,7 @@ class RefreshWebcalJobRegistrarTest extends TestCase {
        /** @var RefreshWebcalJobRegistrar */
        private $migration;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->db = $this->createMock(IDBConnection::class);
index 657d4dcebbbb1a4cc698d11b8b8e3421dffb5ab6..a634737d1d0f03ea0c158e4fda86a41574e98c61 100644 (file)
@@ -40,7 +40,7 @@ class RegenerateBirthdayCalendarsTest extends TestCase {
        /** @var RegenerateBirthdayCalendars */
        private $migration;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->jobList = $this->createMock(IJobList::class);
index 693b3f61f9dafa407022ac55a3ca478a48ea3d97..2f65fc7c45fe5aaba6d67718689b232632e38918 100644 (file)
@@ -34,7 +34,7 @@ class AppleProvisioningNodeTest extends TestCase {
        /** @var AppleProvisioningNode */
        private $node;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->timeFactory = $this->createMock(ITimeFactory::class);
index 1b854a541c2153c20ec43a9d98be81c4b3ff4c20..eeadf349710e69c7a0478fba264acc6b4090a5de 100644 (file)
@@ -59,7 +59,7 @@ class AppleProvisioningPluginTest extends TestCase {
        /** @var AppleProvisioningPlugin */
        protected $plugin;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->server = $this->createMock(\Sabre\DAV\Server::class);
index a9df63a03abdfcc04bcebf746e44589dec9625f4..17bcf9fba97d05c883b2db35bd4b9dc8fd6ff12c 100644 (file)
@@ -35,7 +35,7 @@ class CalDAVSettingsTest extends TestCase {
        /** @var CalDAVSettings */
        private $settings;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(IConfig::class);
index 77f69c0734ae0a423adaa48ed98ba0b35cfab16d..926c652b77ea89215fe2ab576cad9cba2b8891bd 100644 (file)
@@ -49,7 +49,7 @@ class SystemTagMappingNodeTest extends \Test\TestCase {
         */
        private $user;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->tagManager = $this->getMockBuilder(ISystemTagManager::class)
index bfaff5c2141115e2699f3760d5dfa9027d0d088d..d2bd59bff65f8cd4b2dc8583265e479de10636fc 100644 (file)
@@ -46,7 +46,7 @@ class SystemTagNodeTest extends \Test\TestCase {
         */
        private $user;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->tagManager = $this->getMockBuilder(ISystemTagManager::class)
index 21afc4fc17795b6c74c2ed6a854587a90241d756..1282807842a4e276b09a332dd2ff179c32a335ad 100644 (file)
@@ -85,7 +85,7 @@ class SystemTagPluginTest extends \Test\TestCase {
         */
        private $plugin;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->tree = $this->getMockBuilder(Tree::class)
                        ->disableOriginalConstructor()
index 840b36e3f165441b43f49b7f2d9396dd3d8d6f8b..da46843a5b2f3695bd825ede159c3a01855c8a6c 100644 (file)
@@ -45,7 +45,7 @@ class SystemTagsByIdCollectionTest extends \Test\TestCase {
         */
        private $user;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->tagManager = $this->getMockBuilder(ISystemTagManager::class)
index 4795d54e849cbd8ae2fe4463e22ebf0e4e99cb0d..ff56ae3d4473c93485663a601d8c7e584cce94e5 100644 (file)
@@ -49,7 +49,7 @@ class SystemTagsObjectMappingCollectionTest extends \Test\TestCase {
         */
        private $user;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->tagManager = $this->getMockBuilder(ISystemTagManager::class)
index 877fe56c6d8c215ffcaefbbdafd01aba8065bdb1..5e4e539b1e730a3e2f0232853cab1bfd4cd85e0b 100644 (file)
@@ -54,7 +54,7 @@ class SystemTagsObjectTypeCollectionTest extends \Test\TestCase {
         */
        private $userFolder;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->tagManager = $this->getMockBuilder(ISystemTagManager::class)
index 410ab2fc021f3473de39078d34cc382aacddf22f..bc2b434bcf7dc47cb181573705221b5ecf615b05 100644 (file)
@@ -51,7 +51,7 @@ class ChunkingPluginTest extends TestCase {
        /** @var ResponseInterface | \PHPUnit_Framework_MockObject_MockObject */
        private $response;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->server = $this->getMockBuilder('\Sabre\DAV\Server')
index ea59107647017e35acd94d10c8fb8f4f6317e2df..ef6bd9eec221166db731eb4da0de5a0d4c639d80 100644 (file)
@@ -53,7 +53,7 @@ class TestEnableMasterKey extends TestCase {
        /** @var  \Symfony\Component\Console\Input\InputInterface | \PHPUnit_Framework_MockObject_MockObject */
        protected $input;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->util = $this->getMockBuilder(Util::class)
index 79f03f214eab86bfb8b4a503b085cdebf3b9443a..5737f8e86ca4ae7d3fd49176d56111c07d790266 100644 (file)
@@ -152,7 +152,7 @@ class RecoveryControllerTest extends TestCase {
 
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->requestMock = $this->getMockBuilder(IRequest::class)
index b50f7cd0b612e93f3ab5ce1e32a27bdd9a8a89ad..bc2a7ed853b3a25c9c6597a64c08b79cee1335d4 100644 (file)
@@ -74,7 +74,7 @@ class SettingsControllerTest extends TestCase {
        /** @var \OCA\Encryption\Util|\PHPUnit_Framework_MockObject_MockObject */
        private $utilMock;
 
-       protected function setUp() {
+       protected function setUp(): void {
 
                parent::setUp();
 
index ffd12bd20b94576c63af490ad50f21b8854cfe04..ccf33ffd37b7d967a5c2ba1231a6fb630d8aed7d 100644 (file)
@@ -51,7 +51,7 @@ class StatusControllerTest extends TestCase {
        /** @var StatusController */
        protected $controller;
 
-       protected function setUp() {
+       protected function setUp(): void {
 
                parent::setUp();
 
index 7ecb017b85553af8a90cbfb5769b67f9a945651f..1731f25d532220716e1493e78d93ce96b3c81996 100644 (file)
@@ -53,7 +53,7 @@ class CryptTest extends TestCase {
        /** @var Crypt */
        private $crypt;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->logger = $this->getMockBuilder(ILogger::class)
index 64e29241a079c69344ffcb307f6f3923f1838ea4..b314bb5b543d99246ddf724e20274af6f2884a7c 100644 (file)
@@ -53,7 +53,7 @@ class DecryptAllTest extends TestCase {
        /** @var QuestionHelper | \PHPUnit_Framework_MockObject_MockObject  */
        protected $questionHelper;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->util = $this->getMockBuilder(Util::class)
index 80ff97f17ee3e25a339152739d3377a1ff1fd613..f5f042aac66c3607626b5ad561822a35cf7bc684 100644 (file)
@@ -90,7 +90,7 @@ class EncryptAllTest extends TestCase {
        /** @var  EncryptAll */
        protected $encryptAll;
 
-       function setUp() {
+       function setUp(): void {
                parent::setUp();
                $this->setupUser = $this->getMockBuilder(Setup::class)
                        ->disableOriginalConstructor()->getMock();
index 1f628ff19c9d57fcd4facb9ea0147b884f1bc12d..4136673a6ec26f345f647bed6fa4f731ab3a5c8f 100644 (file)
@@ -73,7 +73,7 @@ class EncryptionTest extends TestCase {
        /** @var \OCP\Files\Storage|\PHPUnit_Framework_MockObject_MockObject */
        private $storageMock;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->storageMock = $this->getMockBuilder(Storage::class)
index 5db3d10cc8f5ee84b549ff3632de8923366dc7c9..5ff76f918d4fa8ab63142c9c98dbd252573d9843 100644 (file)
@@ -57,7 +57,7 @@ class HookManagerTest extends TestCase {
        /**
         *
         */
-       public static function setUpBeforeClass() {
+       public static function setUpBeforeClass(): void {
                parent::setUpBeforeClass();
                // have to make instance static to preserve data between tests
                self::$instance = new HookManager();
index c59343a7c9bfe6621510355d2452d24b56138de7..3853aaffaee3013e7e14a4feeed70fa399a3799e 100644 (file)
@@ -333,7 +333,7 @@ class UserHooksTest extends TestCase {
                $this->assertNull($userHooks->setPassphrase($this->params));
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->loggerMock = $this->createMock(ILogger::class);
                $this->keyManagerMock = $this->getMockBuilder(KeyManager::class)
index 7af9e39e95d014e286446d746d84e6fd76a4f47c..6e5c51db3c8840db445d33285546235534b3c113 100644 (file)
@@ -79,7 +79,7 @@ class KeyManagerTest extends TestCase {
        /** @var \OCP\IConfig|\PHPUnit_Framework_MockObject_MockObject */
        private $configMock;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->userId = 'user1';
                $this->systemKeyId = 'systemKeyId';
index 942c3469c958670440a7cec53b62a7d29a6bade2..c9216e7778adadf39a6758f63dd8cee4ff853a2b 100644 (file)
@@ -259,7 +259,7 @@ class RecoveryTest extends TestCase {
                        ['/', 'testkey', 'admin']));
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->user = $this->createMock(IUser::class);
index a11aca2f75b33971ba62273d233212e72d2bbdbe..25c652b36af0cd5445f41d1c741427d89ef3ff85 100644 (file)
@@ -201,7 +201,7 @@ class SessionTest extends TestCase {
        /**
         *
         */
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->sessionMock = $this->createMock(ISession::class);
 
@@ -221,7 +221,7 @@ class SessionTest extends TestCase {
                $this->instance = new Session($this->sessionMock);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                self::$tempStorage = [];
                parent::tearDown();
        }
index 728ffe1d932f4241bde8adf30698fbe1769298de..9df483916b7acab52cb9cd0dde7d838cdcad7632 100644 (file)
@@ -50,7 +50,7 @@ class AdminTest extends TestCase {
        /** @var ISession */
        private $session;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->l = $this->getMockBuilder(IL10N::class)->getMock();
index 141120671f2396fdc5369a9ef9e82444a97d3dc2..4111498ac647c2f3d3f149eb66d16372657ce4f0 100644 (file)
@@ -48,7 +48,7 @@ class SetupTest extends TestCase {
         */
        private $instance;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $logMock = $this->createMock(ILogger::class);
                $userSessionMock = $this->getMockBuilder(IUserSession::class)
index 477501be1a8fcd8518622586364f2e55b9a617a7..77c070d7150b41b33afae2144025c3a44b44dcf8 100644 (file)
@@ -80,7 +80,7 @@ class UtilTest extends TestCase {
                $this->assertTrue($this->instance->userHasFiles('admin'));
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->mountMock = $this->createMock(IMountPoint::class);
                $this->filesMock = $this->createMock(View::class);
index 63691f6162413dfa01f08b06b0ed0f88188f52ee..efea34dbab217ab1b118d517ee77be0e52cb82b2 100644 (file)
@@ -46,7 +46,7 @@ class AddressHandlerTest extends \Test\TestCase {
        /** @var CloudIdManager */
        private $cloudIdManager;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->urlGenerator = $this->getMockBuilder(IURLGenerator::class)
index db4c3914115091d7425f05950b33e9642441d751..88f486f3c69ab8dfbe10028c8e4ac06b3f479194 100644 (file)
@@ -84,7 +84,7 @@ class MountPublicLinkControllerTest extends \Test\TestCase {
        /** @var  ICloudIdManager */
        private $cloudIdManager;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->request = $this->getMockBuilder(IRequest::class)->disableOriginalConstructor()->getMock();
index 57d82f63e16b5d5b6fb540128e0211b57f6fc626..d8903d438fb108033042820efb05f56f3b47ea3a 100644 (file)
@@ -112,7 +112,7 @@ class RequestHandlerControllerTest extends \Test\TestCase {
        /** @var ICloudFederationShare|\PHPUnit_Framework_MockObject_MockObject */
        private $cloudFederationShare;
 
-       protected function setUp() {
+       protected function setUp(): void {
 
                $this->share = $this->getMockBuilder(IShare::class)->getMock();
                $this->federatedShareProvider = $this->getMockBuilder('OCA\FederatedFileSharing\FederatedShareProvider')
index ae233e565d12faff7f3b23abccf41f6e58edd23b..31d13df8f31e54b57e9dd3383f803da214eb52c4 100644 (file)
@@ -85,7 +85,7 @@ class FederatedShareProviderTest extends \Test\TestCase {
        /** @var \PHPUnit_Framework_MockObject_MockObject|ICloudFederationProviderManager */
        private $cloudFederationProviderManager;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->connection = \OC::$server->getDatabaseConnection();
@@ -131,10 +131,10 @@ class FederatedShareProviderTest extends \Test\TestCase {
                $this->shareManager = \OC::$server->getShareManager();
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                $this->connection->getQueryBuilder()->delete('share')->execute();
 
-               return parent::tearDown();
+               parent::tearDown();
        }
 
        public function testCreate() {
index d93b9d608c34eb7ec038e3daeadb8d22b43472fe..769184f1628eb722350ec605c0683c6ab52df308 100644 (file)
@@ -53,7 +53,7 @@ class NotificationsTest extends \Test\TestCase {
        /** @var ICloudFederationFactory|\PHPUnit_Framework_MockObject_MockObject */
        private $cloudFederationFactory;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->jobList = $this->getMockBuilder('OCP\BackgroundJob\IJobList')->getMock();
index f0cf3b77d3890b326ac8c08649faa6eab8c15495..bca8ad734267680bcb96c0bd37a4c29b9c7a39a8 100644 (file)
@@ -38,7 +38,7 @@ class AdminTest extends TestCase {
        /** @var  IConfig|\PHPUnit_Framework_MockObject_MockObject */
        private $gsConfig;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->federatedShareProvider = $this->createMock(FederatedShareProvider::class);
                $this->gsConfig = $this->createMock(IConfig::class);
index 35fbd97803e6b26040d25b6a8b609bfd10a7abab..50fcada6d32d31234ee2b9f6895a07b77041c466 100644 (file)
@@ -39,7 +39,7 @@ abstract class TestCase extends \Test\TestCase {
        const TEST_FILES_SHARING_API_USER1 = "test-share-user1";
        const TEST_FILES_SHARING_API_USER2 = "test-share-user2";
 
-       public static function setUpBeforeClass() {
+       public static function setUpBeforeClass(): void {
                parent::setUpBeforeClass();
 
                // reset backend
@@ -53,14 +53,14 @@ abstract class TestCase extends \Test\TestCase {
                $backend->createUser(self::TEST_FILES_SHARING_API_USER2, self::TEST_FILES_SHARING_API_USER2);
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                //login as user1
                self::loginHelper(self::TEST_FILES_SHARING_API_USER1);
        }
 
-       public static function tearDownAfterClass() {
+       public static function tearDownAfterClass(): void {
                // cleanup users
                $user = \OC::$server->getUserManager()->get(self::TEST_FILES_SHARING_API_USER1);
                if ($user !== null) {
index 37798269a387760a08ab3657a6bbde55cbce0cdb..bd3c0f92911475d75d9a38f150f9a0c00b652005 100644 (file)
@@ -39,7 +39,7 @@ class TokenHandlerTest extends \Test\TestCase {
        /** @var int */
        private $expectedTokenLength = 15;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->secureRandom = $this->getMockBuilder(ISecureRandom::class)->getMock();
index adc621650afaefe8bc6a93bf830d6df56485a23e..b4e8365b502969cf378fc2085b53e79ea3cb0dbe 100644 (file)
@@ -81,7 +81,7 @@ class GetSharedSecretTest extends TestCase {
        /** @var GetSharedSecret */
        private $getSharedSecret;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->httpClientService = $this->createMock(IClientService::class);
index e8f63fb30d3bd25c5412936a46feb5b4d4417930..d97919942af4791823e2340186eb9de33ad88cc9 100644 (file)
@@ -73,7 +73,7 @@ class RequestSharedSecretTest extends TestCase {
        /** @var  RequestSharedSecret */
        private $requestSharedSecret;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->httpClientService = $this->createMock(IClientService::class);
index df9f284d2c9f09e97f5bc6b9b1373b0a52804e05..c625d960e5a4dd9082499692d6307ddf1dd82962 100644 (file)
@@ -67,7 +67,7 @@ class OCSAuthAPIControllerTest extends TestCase {
        /** @var int simulated timestamp */
        private $currentTime = 1234567;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index 41312b8ef2c2d5cda3fa83b062786aef93bf6638..9b283b5090321cdd368b49a7edfea72d6a4cbd71 100644 (file)
@@ -45,7 +45,7 @@ class SettingsControllerTest extends TestCase {
        /** @var \PHPUnit_Framework_MockObject_MockObject | \OCA\Federation\TrustedServers */
        private $trustedServers;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->request = $this->getMockBuilder(IRequest::class)->getMock();
index bad026855344c91d3a7aaaf43f8f9539ef74ba74..348f5b70308a58dd92bc0108e2f2565523fa4576 100644 (file)
@@ -49,7 +49,7 @@ class DbHandlerTest extends TestCase {
        /** @var string  */
        private $dbTable = 'trusted_servers';
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->connection = \OC::$server->getDatabaseConnection();
@@ -65,7 +65,7 @@ class DbHandlerTest extends TestCase {
                $this->assertEmpty($result, 'we need to start with a empty trusted_servers table');
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                parent::tearDown();
                $query = $this->connection->getQueryBuilder()->delete($this->dbTable);
                $query->execute();
index 34ac8dfd53961b30ae2df2a90ae3621fc98dd14a..ad6e0bf8a7784b02e4ab745b6ceaa510e7d9cbc1 100644 (file)
@@ -36,7 +36,7 @@ class HooksTest extends TestCase {
        /** @var  Hooks */
        private $hooks;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->trustedServers = $this->getMockBuilder('OCA\Federation\TrustedServers')
index eb063019424f7423490dda5cba945854948734f3..4423233b93e2e67a67bd46021a4ba869dc3b113f 100644 (file)
@@ -48,7 +48,7 @@ class AddServerMiddlewareTest extends TestCase {
        /** @var  \PHPUnit_Framework_MockObject_MockObject | SettingsController */
        private $controller;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->logger = $this->getMockBuilder(ILogger::class)->getMock();
index 758bda6bc5e13807891ba1a0bf3a1ce65387f334..0fc1f7c25ab874873e787f2a3b397851621e7165 100644 (file)
@@ -34,7 +34,7 @@ class AdminTest extends TestCase {
        /** @var TrustedServers */
        private $trustedServers;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->trustedServers = $this->getMockBuilder('\OCA\Federation\TrustedServers')->disableOriginalConstructor()->getMock();
                $this->admin = new Admin(
index 2148b4b3c00cdcf807529c8ca75cca25e30a5dbb..e1c810bde9712c3c9cc5b6c39f617426b2adf1f2 100644 (file)
@@ -38,7 +38,7 @@ class SyncFederationAddressbooksTest extends \Test\TestCase {
        /** @var  \PHPUnit_Framework_MockObject_MockObject | DiscoveryService */
        private $discoveryService;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->discoveryService = $this->getMockBuilder(DiscoveryService::class)
index 209f41322c4ca205e530738ec8062de2794b85a5..82e5654e63f3830bef04ffa264b955cad8008791 100644 (file)
@@ -76,7 +76,7 @@ class TrustedServersTest extends TestCase {
        /** @var \PHPUnit_Framework_MockObject_MockObject|ITimeFactory */
        private $timeFactory;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->dbHandler = $this->getMockBuilder(DbHandler::class)
index d3738ae41a7f47cea41fe40ce627382fff852e43..da1f014ad053c6dbacd980f1c9e6145485aad864 100644 (file)
@@ -55,7 +55,7 @@ class ProviderTest extends TestCase {
        /** @var IEventMerger|\PHPUnit_Framework_MockObject_MockObject */
        protected $eventMerger;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->l10nFactory = $this->createMock(IFactory::class);
index bf4e78d6b21e521c0b65d281d472ced09745cf20..4b0496a1aa664da271e27b17fa2e1af4fd456981 100644 (file)
@@ -38,7 +38,7 @@ class DeleteOrphanedItemsJobTest extends \Test\TestCase {
        /** @var \OCP\IDBConnection */
        protected $connection;
 
-       protected function setup() {
+       protected function setUp(): void {
                parent::setUp();
                $this->connection = \OC::$server->getDatabaseConnection();
        }
index a75e54edfee9685a74b0977b136cd24b27289685..8539c6ba7d362a3e3e257b9f76342d15af8fd11f 100644 (file)
@@ -42,7 +42,7 @@ class ScanFilesTest extends TestCase {
        /** @var ScanFiles */
        private $scanFiles;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(IConfig::class);
index 684192858e7423f4ec08ec5a8f29cb9af69533cf..c3f7d8712ac1d4b3035a9dc22370213c74450474 100644 (file)
@@ -55,7 +55,7 @@ class DeleteOrphanedFilesTest extends TestCase {
         */
        private $user1;
 
-       protected function setup() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->connection = \OC::$server->getDatabaseConnection();
@@ -68,7 +68,7 @@ class DeleteOrphanedFilesTest extends TestCase {
                $this->command = new DeleteOrphanedFiles($this->connection);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $userManager = \OC::$server->getUserManager();
                $user1 = $userManager->get($this->user1);
                if($user1) {
index 22daf7c23b4a0d41b40410ab2270bff200ede647..e5fbe7d3868e81890fcf0607a3dbcfeea0cffaa0 100644 (file)
@@ -68,7 +68,7 @@ class ApiControllerTest extends TestCase {
        /** @var Folder|\PHPUnit_Framework_MockObject_MockObject */
        private $userFolder;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->request = $this->getMockBuilder(IRequest::class)
index 4de56082e98b34050dc6a02f1425efbadc5780a6..c57be81b487bb27fae8ff4d3a365913edd860f63 100644 (file)
@@ -76,7 +76,7 @@ class ViewControllerTest extends TestCase {
        /** @var Helper|\PHPUnit_Framework_MockObject_MockObject */
        private $activityHelper;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->request = $this->getMockBuilder(IRequest::class)->getMock();
                $this->urlGenerator = $this->getMockBuilder(IURLGenerator::class)->getMock();
index 709ba3b9c9886cc7792473434441adc699e71240..4590277aeb4998d05b6215b5bf9690762445779f 100644 (file)
@@ -70,7 +70,7 @@ class TagServiceTest extends \Test\TestCase {
         */
        private $tagger;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->user = static::getUniqueID('user');
                $this->activityManager = $this->createMock(IManager::class);
@@ -112,7 +112,7 @@ class TagServiceTest extends \Test\TestCase {
 
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                \OC_User::setUserId('');
                $user = \OC::$server->getUserManager()->get($this->user);
                if ($user !== null) { $user->delete(); }
index c447be7a669d4f1cd9ad6d2b884ce998b77d86db..15f8f5f47a91fe2f66f6f2b588778833e77dd6f7 100644 (file)
@@ -45,7 +45,7 @@ class GlobalAuthTest extends TestCase {
         */
        private $instance;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->l10n = $this->createMock(IL10N::class);
                $this->credentialsManager = $this->createMock(ICredentialsManager::class);
index dcafdd84e3d2e6749f63d7b918ca46e36b142826..006bb458370b02f90ddb26d6f92decc7226057a9 100644 (file)
@@ -50,7 +50,7 @@ class UserPlaceholderHandlerTest extends \Test\TestCase {
        /** @var UserPlaceholderHandler */
        protected $handler;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->user = $this->createMock(IUser::class);
index f18ee8323b3bfd05b5f9764b3f71cbdc2f162c1f..a940f49fc2afa0fd554eb893fb6e1472a7b603fb 100644 (file)
@@ -48,7 +48,7 @@ class AjaxControllerTest extends TestCase {
        /** @var AjaxController */
        private $ajaxController;
 
-       public function setUp() {
+       public function setUp(): void {
                $this->request = $this->createMock(IRequest::class);
                $this->rsa = $this->getMockBuilder('\\OCA\\Files_External\\Lib\\Auth\\PublicKey\\RSA')
                        ->disableOriginalConstructor()
index c3a684f2e98c241b8e2f7c8146e0a8bfe8794f3d..bcc8d3e2d98396ff08a48d69fa0bff1f4c61814e 100644 (file)
@@ -34,7 +34,7 @@ use OCP\ILogger;
 use OCP\IRequest;
 
 class GlobalStoragesControllerTest extends StoragesControllerTest {
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->service = $this->getMockBuilder('\OCA\Files_External\Service\GlobalStoragesService')
                        ->disableOriginalConstructor()
index 0340057809dc962c0f21440b708b0d202c8dfe04..184b7a6c699d02c68b1217b5c10bffdf0c7a64f2 100644 (file)
@@ -46,11 +46,11 @@ abstract class StoragesControllerTest extends \Test\TestCase {
         */
        protected $service;
 
-       public function setUp() {
+       public function setUp(): void {
                \OC_Mount_Config::$skipTest = true;
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                \OC_Mount_Config::$skipTest = false;
        }
 
index 067fd45972cf6e58215168b430fba140888ba8f0..ddd6d01717ed25e3743eca051e34c85947f026da 100644 (file)
@@ -42,7 +42,7 @@ class UserStoragesControllerTest extends StoragesControllerTest {
         */
        private $oldAllowedBackends;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->service = $this->getMockBuilder('\OCA\Files_External\Service\UserStoragesService')
                        ->disableOriginalConstructor()
index 707ee899419c0d8c9ec95291383262f7c5d49332..8cd1e680deab27960d14325e0e3f64a1eda5169e 100644 (file)
@@ -37,7 +37,7 @@ class BackendServiceTest extends \Test\TestCase {
        /** @var \OCP\IConfig|\PHPUnit_Framework_MockObject_MockObject */
        protected $config;
 
-       protected function setUp() {
+       protected function setUp(): void {
                $this->config = $this->createMock(IConfig::class);
        }
 
index e6115ddec2022a22a73550e37fdd10bec383a8c4..375f1e7018ae662519d907910d30f6a0632af346 100644 (file)
@@ -44,13 +44,13 @@ class DBConfigServiceTest extends TestCase {
 
        private $mounts = [];
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->connection = \OC::$server->getDatabaseConnection();
                $this->dbConfig = new DBConfigService($this->connection, \OC::$server->getCrypto());
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                foreach ($this->mounts as $mount) {
                        $this->dbConfig->removeMount($mount);
                }
index 2760374e59d809c783d223c0b838f9a9fd899ce2..c4d1055521a889580f04f10bd608424197023dda 100644 (file)
@@ -33,12 +33,12 @@ use OCA\Files_External\Service\GlobalStoragesService;
  * @group DB
  */
 class GlobalStoragesServiceTest extends StoragesServiceTest {
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->service = new GlobalStoragesService($this->backendService, $this->dbConfig, $this->mountCache);
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                @unlink($this->dataDir . '/mount.json');
                parent::tearDown();
        }
index ef0f1852d91eb5fda2d796b67982b7fd46d83264..4e2b73f261266807d7fdbe27540e1063c340929b 100644 (file)
@@ -92,7 +92,7 @@ abstract class StoragesServiceTest extends \Test\TestCase {
         */
        protected $mountCache;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->dbConfig = new CleaningDBConfig(\OC::$server->getDatabaseConnection(), \OC::$server->getCrypto());
                self::$hookCalls = array();
@@ -175,7 +175,7 @@ abstract class StoragesServiceTest extends \Test\TestCase {
                        ->willReturn($containerMock);
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                \OC_Mount_Config::$skipTest = false;
                self::$hookCalls = array();
                if ($this->dbConfig) {
index 3a6d22f2ad41e1c6ab85de929f0ba08e276473c2..9a6100d8075c830102f0b36838724f7da4a02603 100644 (file)
@@ -60,7 +60,7 @@ class UserGlobalStoragesServiceTest extends GlobalStoragesServiceTest {
        const GROUP_ID = 'test_group';
        const GROUP_ID2 = 'test_group2';
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->globalStoragesService = $this->service;
index ea6346151bfa2d116c96eef32e8b3f76f8259579..ce0b3ab65b1660c49705cdad1c1795a0077749a4 100644 (file)
@@ -50,7 +50,7 @@ class UserStoragesServiceTest extends StoragesServiceTest {
         */
        protected $globalStoragesService;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->globalStoragesService = new GlobalStoragesService($this->backendService, $this->dbConfig, $this->mountCache);
index 6236f2d416a18fa854ce7ad87396d3d58c70f5c9..3889fe456e423b36461814aa1dffef73fe3690ca 100644 (file)
@@ -43,7 +43,7 @@ class AdminTest extends TestCase {
        /** @var GlobalAuth|\PHPUnit_Framework_MockObject_MockObject */
        private $globalAuth;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->encryptionManager = $this->createMock(IManager::class);
                $this->globalStoragesService = $this->createMock(GlobalStoragesService::class);
index b83f8f0feef996a4e0bca42ce25fdeb75cd3c823..3a8a4f5f7807b0e9b7c71c5849db67129361e795 100644 (file)
@@ -37,7 +37,7 @@ class SectionTest extends TestCase {
        /** @var Section */
        private $section;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->urlGenerator = $this->getMockBuilder(IURLGenerator::class)->disableOriginalConstructor()->getMock();
                $this->l = $this->getMockBuilder(IL10N::class)->disableOriginalConstructor()->getMock();
index 83552ca21a37fbe195ce0790c7badd48c7b6ea28..985c93423a7acff91ec0ad53ddf3fc177551d803 100644 (file)
@@ -40,7 +40,7 @@ class Amazons3Test extends \Test\Files\Storage\Storage {
 
        private $config;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->config = include('files_external/tests/config.amazons3.php');
@@ -50,7 +50,7 @@ class Amazons3Test extends \Test\Files\Storage\Storage {
                $this->instance = new AmazonS3($this->config);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if ($this->instance) {
                        $this->instance->rmdir('');
                }
index 0e12a5f4afaa988f766f11e2d2f7efb5710d50a6..b2dd83b75a7f41a281c887fbf796b55c89ba33b6 100644 (file)
@@ -40,7 +40,7 @@ use OCA\Files_External\Lib\Storage\FTP;
 class FtpTest extends \Test\Files\Storage\Storage {
        private $config;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $id = $this->getUniqueID();
@@ -53,7 +53,7 @@ class FtpTest extends \Test\Files\Storage\Storage {
                $this->instance->mkdir('/');
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if ($this->instance) {
                        \OCP\Files::rmdirr($this->instance->constructUrl(''));
                }
index 3853d0e6ce1b52a544fd3adb61187dc740bd81e5..8a274af165e4714423d2d0501f2318a1db28fb11 100644 (file)
@@ -39,7 +39,7 @@ class OwncloudTest extends \Test\Files\Storage\Storage {
 
        private $config;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $id = $this->getUniqueID();
@@ -52,7 +52,7 @@ class OwncloudTest extends \Test\Files\Storage\Storage {
                $this->instance->mkdir('/');
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if ($this->instance) {
                        $this->instance->rmdir('/');
                }
index c67d418f67410724c95f9c7c82112718e0210766..fe40c0fbd956b42d267d04875cea7960bdba85a2 100644 (file)
@@ -38,7 +38,7 @@ use OCA\Files_External\Lib\Storage\SFTP_Key;
 class SFTP_KeyTest extends \Test\Files\Storage\Storage {
        private $config;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $id = $this->getUniqueID();
@@ -52,7 +52,7 @@ class SFTP_KeyTest extends \Test\Files\Storage\Storage {
                $this->instance->mkdir('/');
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if ($this->instance) {
                        $this->instance->rmdir('/');
                }
index 9ad7cfd56a8b5aeee0b36cb82bf96815e24bcc08..bee514485a5265d88f7cb87a4bc955a23dd2e0c1 100644 (file)
@@ -45,7 +45,7 @@ class SftpTest extends \Test\Files\Storage\Storage {
 
        private $config;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $id = $this->getUniqueID();
@@ -58,7 +58,7 @@ class SftpTest extends \Test\Files\Storage\Storage {
                $this->instance->mkdir('/');
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if ($this->instance) {
                        $this->instance->rmdir('/');
                }
index fc59f0ed38b8bb1cc50c261697185901a6f404e5..645cb0e290780759b089ab263284ca27117c63a6 100644 (file)
@@ -46,7 +46,7 @@ class SmbTest extends \Test\Files\Storage\Storage {
         */
        protected $instance;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $id = $this->getUniqueID();
@@ -62,7 +62,7 @@ class SmbTest extends \Test\Files\Storage\Storage {
                $this->instance->mkdir('/');
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if ($this->instance) {
                        $this->instance->rmdir('');
                }
index 6517be493d7b9d071675b2e79c9ce0c066c013f4..2e1bc5e0ed32f2722590d4675f31d88e71524692 100644 (file)
@@ -46,7 +46,7 @@ class SwiftTest extends \Test\Files\Storage\Storage {
         */
        protected $instance;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->config = include('files_external/tests/config.swift.php');
@@ -56,7 +56,7 @@ class SwiftTest extends \Test\Files\Storage\Storage {
                $this->instance = new Swift($this->config);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if ($this->instance) {
                        try {
                                $container = $this->instance->getContainer();
index c0d69592c2adf06c2ac243c069705831a099452f..1aae245d675378cc07a220f3005b609efd9b7ea0 100644 (file)
@@ -39,7 +39,7 @@ use OC\Files\Type\Detection;
  */
 class WebdavTest extends \Test\Files\Storage\Storage {
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $id = $this->getUniqueID();
@@ -55,7 +55,7 @@ class WebdavTest extends \Test\Files\Storage\Storage {
                $this->instance->mkdir('/');
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if ($this->instance) {
                        $this->instance->rmdir('/');
                }
index 5cf3906e565337f364c3214c00fef0e1e554ab9f..05acb9c18e2c3adc1a5fe5c34cd60382e684ebfc 100644 (file)
@@ -63,7 +63,7 @@ class ApiTest extends TestCase {
        /** @var string */
        private $subsubfolder;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                \OC::$server->getConfig()->setAppValue('core', 'shareapi_exclude_groups', 'no');
@@ -88,7 +88,7 @@ class ApiTest extends TestCase {
                $this->userFolder = \OC::$server->getUserFolder(self::TEST_FILES_SHARING_API_USER1);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if($this->view instanceof \OC\Files\View) {
                        $this->view->unlink($this->filename);
                        $this->view->deleteAll($this->folder);
index e8d8ae7f63ba415ec35e558635e63e59bae52f8e..d2f96d01eb8ecab1972716e64c42300c66738bde 100644 (file)
@@ -62,7 +62,7 @@ class CacheTest extends TestCase {
        /** @var \OCP\Share\IManager */
        protected $shareManager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->shareManager = \OC::$server->getShareManager();
@@ -128,7 +128,7 @@ class CacheTest extends TestCase {
                $this->sharedCache = $this->sharedStorage->getCache();
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if($this->sharedCache) {
                        $this->sharedCache->clear();
                }
index 8f5167887611b411cc06675b237722d6ea646646..93bef4afbf69250afad5ed927cb2d9f7ceee6e30 100644 (file)
@@ -43,7 +43,7 @@ class ShareRecipientSorterTest extends TestCase {
        /** @var  ShareRecipientSorter */
        protected $sorter;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->shareManager = $this->createMock(IManager::class);
index 257d9c35dff06bbc6aa25fd644f617e0b6b1f5ee..4e100cf20998943f493033fbdaf1091f79552741 100644 (file)
@@ -57,7 +57,7 @@ class CleanupRemoteStoragesTest extends TestCase {
                ['notExistingId' => 'shared::c34568c143cdac7d2f06e0800b5280f9', 'share_token' => 'f2c69dad1dc0649f26976fd210fc62e7', 'remote' => 'https://hostname.tld/owncloud7', 'user' => 'user7'],
        ];
 
-       protected function setup() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->connection = \OC::$server->getDatabaseConnection();
@@ -110,7 +110,7 @@ class CleanupRemoteStoragesTest extends TestCase {
                $this->command = new CleanupRemoteStorages($this->connection);
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                $storageQuery = \OC::$server->getDatabaseConnection()->getQueryBuilder();
                $storageQuery->delete('storages')
                        ->where($storageQuery->expr()->eq('id', $storageQuery->createParameter('id')));
@@ -133,7 +133,7 @@ class CleanupRemoteStoragesTest extends TestCase {
                        }
                }
 
-               return parent::tearDown();
+               parent::tearDown();
        }
 
        private function doesStorageExist($numericId) {
index 71a4f4adebaa86f7569a1e2d8d8d4b3925894e6f..d2237acbd7f5328bf269b63283255149752b594b 100644 (file)
@@ -43,7 +43,7 @@ class ExternalShareControllerTest extends \Test\TestCase {
        /** @var IClientService */
        private $clientService;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->request = $this->getMockBuilder('\\OCP\\IRequest')
                        ->disableOriginalConstructor()->getMock();
index ed556172a2724895cb94f729f0f889c6ff144cef..cbe3872bb676336d220de409fed19b25e4a13cf1 100644 (file)
@@ -54,7 +54,7 @@ class PublicPreviewControllerTest extends TestCase {
        /** @var PublicPreviewController */
        private $controller;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->previewManager = $this->createMock(IPreview::class);
index 6452ad5001906a0c68504d5fe8124f5646155ed4..32a2e88f781227e9b3ca41fab34c03c7b4010533 100644 (file)
@@ -100,7 +100,7 @@ class ShareAPIControllerTest extends TestCase {
        /** @var IServerContainer|\PHPUnit_Framework_MockObject_MockObject */
        private $serverContainer;
 
-       protected function setUp() {
+       protected function setUp(): void {
                $this->shareManager = $this->createMock(IManager::class);
                $this->shareManager
                        ->expects($this->any())
index 01b20e5857264e18e8ea378dae527995db02af0f..ec6fc9a598dbf0d5593c1504f8c2646da99f61ab 100644 (file)
@@ -93,7 +93,7 @@ class ShareControllerTest extends \Test\TestCase {
        /** @var IL10N */
        private $l10n;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->appName = 'files_sharing';
 
@@ -142,7 +142,7 @@ class ShareControllerTest extends \Test\TestCase {
                $this->loginAsUser($this->user);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                \OC_Util::tearDownFS();
                \OC_User::setUserId('');
                Filesystem::tearDown();
index 627990a2f905ddb996d88304ae8fc586750582c6..b8d87d5cd6865bbe74e3a9d8bbfa04d23ef96faa 100644 (file)
@@ -45,7 +45,7 @@ class ShareInfoControllerTest extends TestCase {
        private $shareManager;
 
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->shareManager = $this->createMock(ShareManager::class);
index c5d31e3b59d2f01aced85b941233ac3c81fcd574..20790fc0bfaf4a7ca566de25aa674a331056ce64 100644 (file)
@@ -62,7 +62,7 @@ class ShareesAPIControllerTest extends TestCase {
        /** @var  ISearch|\PHPUnit_Framework_MockObject_MockObject */
        protected $collaboratorSearch;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->uid = 'test123';
index 03f19525e0dfa940a4b4cae7bbc34a2963d0f728..028878e3abdad5ea55bb2d0b5585474849c62033 100644 (file)
@@ -61,7 +61,7 @@ class DeleteOrphanedSharesJobTest extends \Test\TestCase {
         */
        private $user2;
 
-       public static function setUpBeforeClass() {
+       public static function setUpBeforeClass(): void {
                $appManager = \OC::$server->getAppManager();
                self::$trashBinStatus = $appManager->isEnabledForUser('files_trashbin');
                $appManager->disableApp('files_trashbin');
@@ -70,13 +70,13 @@ class DeleteOrphanedSharesJobTest extends \Test\TestCase {
                \OC\Files\Filesystem::getLoader()->removeStorageWrapper('oc_trashbin');
        }
 
-       public static function tearDownAfterClass() {
+       public static function tearDownAfterClass(): void {
                if (self::$trashBinStatus) {
                        \OC::$server->getAppManager()->enableApp('files_trashbin');
                }
        }
 
-       protected function setup() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->connection = \OC::$server->getDatabaseConnection();
@@ -95,7 +95,7 @@ class DeleteOrphanedSharesJobTest extends \Test\TestCase {
                $this->job = new DeleteOrphanedSharesJob();
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $this->connection->executeUpdate('DELETE FROM `*PREFIX*share`');
 
                $userManager = \OC::$server->getUserManager();
index e255f08ccf17367f9ed6f85614de9d91e1d52787..0f34f0785a7033cb663a27da25ee7f0407ecce7b 100644 (file)
@@ -55,7 +55,7 @@ class ExpireSharesJobTest extends \Test\TestCase {
         */
        private $user2;
 
-       protected function setup() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->connection = \OC::$server->getDatabaseConnection();
@@ -74,7 +74,7 @@ class ExpireSharesJobTest extends \Test\TestCase {
                $this->job = new ExpireSharesJob();
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $this->connection->executeUpdate('DELETE FROM `*PREFIX*share`');
 
                $userManager = \OC::$server->getUserManager();
index 02109e35db1f8d40a546b6154a66011afe2fabef..39ff1ff24f12aedd77a37128af0aee8b460ccd84 100644 (file)
@@ -56,7 +56,7 @@ class CacheTest extends TestCase {
        /** @var  ICloudIdManager */
        private $cloudIdManager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->cloudIdManager = new CloudIdManager();
@@ -83,7 +83,7 @@ class CacheTest extends TestCase {
                );
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if ($this->cache) {
                        $this->cache->clear();
                }
index 93c17ca10cf9a89ece2eb532ffee347f2aee3ce0..2224b76708381a469426848e27125917ba40f8b7 100644 (file)
@@ -78,7 +78,7 @@ class ManagerTest extends TestCase {
        private $user;
        private $testMountProvider;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->uid = $this->getUniqueID('user');
index fe77182e83f68a1975fc04f1169a8364b3e6bc66..b9bfb1a84a802e5d14991139812fe20d67e4469d 100644 (file)
@@ -33,7 +33,7 @@ class ScannerTest extends TestCase {
        /** @var \OC\Files\Cache\Cache|\PHPUnit_Framework_MockObject_MockObject */
        protected $cache;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->storage = $this->getMockBuilder('\OCA\Files_Sharing\External\Storage')
index 414e87908198614cad7f7992ced2a8a3c558567e..47394fc588f6e9dc9566fcbe528bffbb0ba41da8 100644 (file)
@@ -46,7 +46,7 @@ class LockingTest extends TestCase {
        private $ownerUid;
        private $recipientUid;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->userBackend = new \Test\Util\User\Dummy();
@@ -74,7 +74,7 @@ class LockingTest extends TestCase {
                $this->assertTrue(Filesystem::file_exists('bar.txt'));
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                \OC::$server->getUserManager()->removeBackend($this->userBackend);
                parent::tearDown();
        }
index a1d1f1bf55159fb776ab0600b3b366b42f1d05fc..06d33859a289022df0f2f774e2706749ec9d3023 100644 (file)
@@ -44,7 +44,7 @@ class OCSShareAPIMiddlewareTest extends \Test\TestCase {
        /** @var OCSShareAPIMiddleware */
        private $middleware;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->shareManager = $this->createMock(IManager::class);
index 781861aa3928bdee862ccb6a32ec1902081b9ddd..e6744d5fd1dc20d343fc446cd9c7b8c357b253ed 100644 (file)
@@ -41,7 +41,7 @@ class ShareInfoMiddlewareTest extends TestCase {
        /** @var ShareInfoMiddleware */
        private $middleware;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->shareManager = $this->createMock(ShareManager::class);
index f49b472a35c52be27e2303af9d7fe61cfcaa20c9..e3fb602acd6289bda19f7895e1891c7aa48598f6 100644 (file)
@@ -59,7 +59,7 @@ class SharingCheckMiddlewareTest extends \Test\TestCase {
        /** @var  IRequest | \PHPUnit_Framework_MockObject_MockObject */
        private $request;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(IConfig::class);
index c4c78b04a23b02b5c2823fc904a18cf84bc023ca..418ede9179a927a80a4bf415ec29f40ace0abfc9 100644 (file)
@@ -47,7 +47,7 @@ class SetPasswordColumnTest extends TestCase {
 
        private $table = 'share';
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->connection = \OC::$server->getDatabaseConnection();
@@ -57,7 +57,7 @@ class SetPasswordColumnTest extends TestCase {
                $this->cleanDB();
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                parent::tearDown();
                $this->cleanDB();
        }
index f4acfdfafe79093e69212b651ef543af313f5f43..5b20524da47cdf96e928ddb0ae58fd6069dceecf 100644 (file)
@@ -59,7 +59,7 @@ class MountProviderTest extends \Test\TestCase {
        /** @var ILogger | \PHPUnit_Framework_MockObject_MockObject */
        private $logger;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->config = $this->getMockBuilder(IConfig::class)->getMock();
index a64d0b25e177295979b3158659b81a1e400fcac6..e47cfff68dded8fe7db77f09fe9c422c7ddd78ba 100644 (file)
@@ -60,7 +60,7 @@ class PermissionsTest extends TestCase {
        /** @var Cache */
        private $ownerCache;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                self::loginHelper(self::TEST_FILES_SHARING_API_USER1);
@@ -115,7 +115,7 @@ class PermissionsTest extends TestCase {
                $this->sharedCacheRestrictedShare = $this->sharedStorageRestrictedShare->getCache();
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if ($this->sharedCache) {
                        $this->sharedCache->clear();
                }
index 21cea3033afc4df5dcaef5f637943fdf9a1ffd60..5f16173725e31066fa336b6a1c41e684c429a11e 100644 (file)
@@ -31,17 +31,17 @@ abstract class PropagationTestCase extends TestCase {
        protected $fileIds = []; // [$user=>[$path=>$id]]
        protected $fileEtags = []; // [$id=>$etag]
 
-       public static function setUpBeforeClass() {
+       public static function setUpBeforeClass(): void {
                parent::setUpBeforeClass();
                \OCA\Files_Sharing\Helper::registerHooks();
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->setUpShares();
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                \OC_Hook::clear('OC_Filesystem', 'post_write');
                \OC_Hook::clear('OC_Filesystem', 'post_delete');
                \OC_Hook::clear('OC_Filesystem', 'post_rename');
index 61bec2caea3437ba89ce706000019b33fa4f2098..f0614d5c98424cbc67e3aa4c9f446afe80777b9a 100644 (file)
@@ -38,7 +38,7 @@ class ShareTest extends TestCase {
 
        private static $tempStorage;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->folder = self::TEST_FOLDER_NAME;
@@ -56,7 +56,7 @@ class ShareTest extends TestCase {
                $this->view->file_put_contents($this->folder . $this->subfolder . $this->filename, $this->data);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                self::loginHelper(self::TEST_FILES_SHARING_API_USER1);
                $this->view->unlink($this->filename);
                $this->view->deleteAll($this->folder);
index f01e9896efbba8fb3cf61c6cfd085c187768d3b8..17b2abf3fced01b781128f999cb905d3d9825b0a 100644 (file)
@@ -44,7 +44,7 @@ class SharedMountTest extends TestCase {
        /** @var IUserManager */
        private $userManager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->folder = '/folder_share_storage_test';
@@ -62,7 +62,7 @@ class SharedMountTest extends TestCase {
                $this->userManager = \OC::$server->getUserManager();
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if ($this->view) {
                        if ($this->view->file_exists($this->folder)) {
                                $this->view->unlink($this->folder);
index e2cb65d9acca2c33f3b2dbab8c6db14183c8ea3e..c4cefee4a349aea401f991fbf245d53215d2fa2b 100644 (file)
@@ -40,7 +40,7 @@ use OCP\Share\IShare;
  */
 class SharedStorageTest extends TestCase {
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                \OCA\Files_Trashbin\Trashbin::registerHooks();
                $this->folder = '/folder_share_storage_test';
@@ -55,7 +55,7 @@ class SharedStorageTest extends TestCase {
                $this->view->file_put_contents($this->folder . $this->filename, "file in subfolder");
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if ($this->view) {
                        if ($this->view->file_exists($this->folder)) {
                                $this->view->unlink($this->folder);
index 6c5f078f9e76782d3aac9ce35ebe5ca89185273a..ce5ceb1f6428dde9583723c21a3e61a404f34acc 100644 (file)
@@ -68,7 +68,7 @@ abstract class TestCase extends \Test\TestCase {
        /** @var \OCP\Files\IRootFolder */
        protected $rootFolder;
 
-       public static function setUpBeforeClass() {
+       public static function setUpBeforeClass(): void {
                parent::setUpBeforeClass();
 
                $application = new Application();
@@ -107,7 +107,7 @@ abstract class TestCase extends \Test\TestCase {
                \OC::$server->getGroupManager()->addBackend($groupBackend);
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                //login as user1
@@ -120,7 +120,7 @@ abstract class TestCase extends \Test\TestCase {
                $this->rootFolder = \OC::$server->getRootFolder();
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $qb = \OC::$server->getDatabaseConnection()->getQueryBuilder();
                $qb->delete('share');
                $qb->execute();
@@ -128,7 +128,7 @@ abstract class TestCase extends \Test\TestCase {
                parent::tearDown();
        }
 
-       public static function tearDownAfterClass() {
+       public static function tearDownAfterClass(): void {
                // cleanup users
                $user = \OC::$server->getUserManager()->get(self::TEST_FILES_SHARING_API_USER1);
                if ($user !== null) { $user->delete(); }
index ce7767d192053715d5f9435e09f674fb57600ed7..92ff48eb3bee1071ecc7e521ba13a3882938de19 100644 (file)
@@ -42,7 +42,7 @@ class UnshareChildrenTest extends TestCase {
 
        private static $tempStorage;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                \OCP\Util::connectHook('OC_Filesystem', 'post_delete', '\OCA\Files_Sharing\Hooks', 'unshareChildren');
@@ -61,7 +61,7 @@ class UnshareChildrenTest extends TestCase {
                $this->view->file_put_contents($this->folder . $this->subfolder . $this->filename, $this->data);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if ($this->view) {
                        $this->view->deleteAll($this->folder);
                }
index 2e044716d079498a651b3e22c133bc6454aeed9c..d20f794883afffc39ae4bafea5a97c8ca0c103e2 100644 (file)
@@ -38,12 +38,12 @@ class UpdaterTest extends TestCase {
 
        const TEST_FOLDER_NAME = '/folder_share_updater_test';
 
-       public static function setUpBeforeClass() {
+       public static function setUpBeforeClass(): void {
                parent::setUpBeforeClass();
                \OCA\Files_Sharing\Helper::registerHooks();
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->folder = self::TEST_FOLDER_NAME;
@@ -56,7 +56,7 @@ class UpdaterTest extends TestCase {
                $this->view->file_put_contents($this->folder . '/' . $this->filename, $this->data);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if ($this->view) {
                        $this->view->unlink($this->filename);
                        $this->view->deleteAll($this->folder);
index 59f84057a148c2e59f5d44fe63737efe1b6c9b93..e332327a9178aa31913930c796295fbaad51830e 100644 (file)
@@ -53,7 +53,7 @@ class WatcherTest extends TestCase {
        /** @var \OCP\Share\IShare */
        private $_share;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                self::loginHelper(self::TEST_FILES_SHARING_API_USER1);
@@ -88,7 +88,7 @@ class WatcherTest extends TestCase {
                $this->sharedCache = $this->sharedStorage->getCache();
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if ($this->sharedCache) {
                        $this->sharedCache->clear();
                }
index c4729d7a7c72ff93d8b099aafd494d7fc3f53659..9a891e86522d549fbac8d6514611d901809300ed 100644 (file)
@@ -27,7 +27,7 @@ class CapabilitiesTest extends TestCase {
        /** @var Capabilities */
        private $capabilities;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->capabilities = new Capabilities();
        }
index 9a517df1a543730a968bf22b35b57a5f062b2457..74231ada18babe7d2086a95a508bb15a0e62c197 100644 (file)
@@ -61,7 +61,7 @@ class CleanUpTest extends TestCase {
        /** @var string  */
        protected $user0 = 'user0';
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->rootFolder = $this->getMockBuilder('OCP\Files\IRootFolder')
                        ->disableOriginalConstructor()->getMock();
index fd562b5cd046c2afb95a98d6704f64d5ebad0c66..a6891a6c07bece9ff384f1a711cc5c79946cf5e0 100644 (file)
@@ -65,7 +65,7 @@ class PreviewControllerTest extends TestCase {
        /** @var IUserSession|\PHPUnit_Framework_MockObject_MockObject */
        private $userSession;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->rootFolder = $this->createMock(IRootFolder::class);
index c98f5fd2b1e794fe2ba10b34299dad83f04e3b91..99690933745a5b6001625cce5eb1cb33f23a9add 100644 (file)
@@ -66,7 +66,7 @@ class StorageTest extends \Test\TestCase {
         */
        private $userView;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                \OC_Hook::clear();
@@ -88,7 +88,7 @@ class StorageTest extends \Test\TestCase {
                $this->userView->file_put_contents('folder/inside.txt', 'bar');
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                \OC\Files\Filesystem::getLoader()->removeStorageWrapper('oc_trashbin');
                $this->logout();
                $user = \OC::$server->getUserManager()->get($this->user);
index 3b1fff31fe1a67de354bc30a2e127550c52ed4bc..9e5b029d9dc33cadaa67a5a23900195375fc73d6 100644 (file)
@@ -54,7 +54,7 @@ class TrashbinTest extends \Test\TestCase {
         */
        private $rootView;
 
-       public static function setUpBeforeClass() {
+       public static function setUpBeforeClass(): void {
                parent::setUpBeforeClass();
 
                $appManager = \OC::$server->getAppManager();
@@ -89,7 +89,7 @@ class TrashbinTest extends \Test\TestCase {
        }
 
 
-       public static function tearDownAfterClass() {
+       public static function tearDownAfterClass(): void {
                // cleanup test user
                $user = \OC::$server->getUserManager()->get(self::TEST_TRASHBIN_USER1);
                if ($user !== null) {
@@ -111,7 +111,7 @@ class TrashbinTest extends \Test\TestCase {
                parent::tearDownAfterClass();
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                \OC::$server->getAppManager()->enableApp('files_trashbin');
@@ -134,7 +134,7 @@ class TrashbinTest extends \Test\TestCase {
                self::loginHelper(self::TEST_TRASHBIN_USER1);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $this->restoreService('AllConfig');
                // disable trashbin to be able to properly clean up
                \OC::$server->getAppManager()->disableApp('files_trashbin');
index 48720d2fbcc2018a5891d3eedd087f5972cb0846..ace8e842e7b1c071f3aaff27ccf72dba5197e64e 100644 (file)
@@ -48,7 +48,7 @@ class CleanupTest extends TestCase {
        /** @var \PHPUnit_Framework_MockObject_MockObject | IRootFolder */
        protected $rootFolder;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->rootFolder = $this->getMockBuilder('OCP\Files\IRootFolder')
index 7c248b363497d3d4218688b7a6ff647443ffffd4..e771b82a42dd139eaff6ef52bf45f4a840fe783c 100644 (file)
@@ -64,7 +64,7 @@ class PreviewControllerTest extends TestCase {
        /** @var IVersionManager|\PHPUnit_Framework_MockObject_MockObject */
        private $versionManager;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->rootFolder = $this->createMock(IRootFolder::class);
index b3023dbef65e99059c94720ee3039e059e7dc9a1..d878ea9c3da4c14db988f6500e9d4e5f2e79adca 100644 (file)
@@ -56,7 +56,7 @@ class VersioningTest extends \Test\TestCase {
         */
        private $rootView;
 
-       public static function setUpBeforeClass() {
+       public static function setUpBeforeClass(): void {
                parent::setUpBeforeClass();
 
                $application = new \OCA\Files_Sharing\AppInfo\Application();
@@ -67,7 +67,7 @@ class VersioningTest extends \Test\TestCase {
                self::loginHelper(self::TEST_VERSIONS_USER, true);
        }
 
-       public static function tearDownAfterClass() {
+       public static function tearDownAfterClass(): void {
                // cleanup test user
                $user = \OC::$server->getUserManager()->get(self::TEST_VERSIONS_USER);
                if ($user !== null) { $user->delete(); }
@@ -77,7 +77,7 @@ class VersioningTest extends \Test\TestCase {
                parent::tearDownAfterClass();
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $config = \OC::$server->getConfig();
@@ -105,7 +105,7 @@ class VersioningTest extends \Test\TestCase {
                }
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $this->restoreService('AllConfig');
 
                if ($this->rootView) {
index 75096eefddd77a03f71a7828c8ad266bc7533346..3b18290ff8d3e2b44eac9d2cf4c3caaac9c1142e 100644 (file)
@@ -48,7 +48,7 @@ class LoginRedirectorControllerTest extends TestCase {
        /** @var IL10N */
        private $l;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index 04fd3d6ecd97b39d67352c85c20ba0620928fc94..1c7bed848a7d01088a6c8dada8ea4a67d91f44bd 100644 (file)
@@ -61,7 +61,7 @@ class OauthApiControllerTest extends TestCase {
        /** @var OauthApiController */
        private $oauthApiController;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index a14d7aad782157b598ed16f8d63ab8070afc9ff6..6519f9cf087a121d078bb155b7eb11939801fc86 100644 (file)
@@ -47,7 +47,7 @@ class SettingsControllerTest extends TestCase {
        /** @var SettingsController */
        private $settingsController;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index ebc6b55a382126516aa181dbb6ce91e643966a5a..8d60b10d1457f5b90e27863fc1e09cc7d6f6a3ff 100644 (file)
@@ -32,7 +32,7 @@ class AccessTokenMapperTest extends TestCase {
        /** @var AccessTokenMapper */
        private $accessTokenMapper;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->accessTokenMapper = new AccessTokenMapper(\OC::$server->getDatabaseConnection());
        }
index 80d69c3b1b81039c5cf5890386849472d7529871..78400672cbb20f591c03a6c066606d38d46643ed 100644 (file)
@@ -32,7 +32,7 @@ class ClientMapperTest extends TestCase {
        /** @var ClientMapper */
        private $clientMapper;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->clientMapper = new ClientMapper(\OC::$server->getDatabaseConnection());
        }
index c6f7ab2a0e88d0b178ceb1fc71af778a328ac473..ec8787db83f7c6d8fc176f9679efb71d71cb6dad 100644 (file)
@@ -40,7 +40,7 @@ class AdminTest extends TestCase {
        /** @var ClientMapper|MockObject */
        private $clientMapper;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->initialStateService = $this->createMock(IInitialStateService::class);
index c9b762d1fb471114b7580a8617c8f3d8abca7cc7..b7d40a6caacfa7b7141623f5ed6ebdba444db0b5 100644 (file)
@@ -44,7 +44,7 @@ class AppConfigControllerTest extends TestCase {
        /** @var IAppConfig|\PHPUnit_Framework_MockObject_MockObject */
        private $appConfig;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(IConfig::class);
index 7bd20e4233fc602efb626e606da8d66e5861c043..1056d3ba4c1987c16963962ba01cdce23d349a37 100644 (file)
@@ -48,7 +48,7 @@ class AppsControllerTest extends \OCA\Provisioning_API\Tests\TestCase {
        /** @var IUserSession */
        private $userSession;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->appManager = \OC::$server->getAppManager();
index b22953ca0430bd90508094a4c534b04f812b7540..676b809169ebb3da39cd55c56d26f5ff6069120b 100644 (file)
@@ -62,7 +62,7 @@ class GroupsControllerTest extends \Test\TestCase {
        protected $api;
 
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index e47db4fd51dc1e61a0d2deb6f4947b73b548178a..0c4fcd5071cd4bce18cf4a4824efa0ff6706e7f2 100644 (file)
@@ -90,7 +90,7 @@ class UsersControllerTest extends TestCase {
        /** @var RemoteWipe|MockObject */
        private $remoteWipe;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->userManager = $this->createMock(IUserManager::class);
index 5ebc43d2b1d60ac0cebc3ae12ca7142b79e82e4b..70dad25058554861748024a599b4cd8636cbfe6f 100644 (file)
@@ -35,7 +35,7 @@ class ProvisioningApiMiddlewareTest extends TestCase {
        /** @var IControllerMethodReflector|\PHPUnit_Framework_MockObject_MockObject */
        private $reflector;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->reflector = $this->createMock(IControllerMethodReflector::class);
index 7d65c5bc1bc65d3b4c3528aef04894abf82a4191..72b7b9527ea278783b6406ada6c0ef429ac29784 100644 (file)
@@ -40,7 +40,7 @@ abstract class TestCase extends \Test\TestCase {
        /** @var IGroupManager */
        protected $groupManager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->userManager = \OC::$server->getUserManager();
@@ -63,7 +63,7 @@ abstract class TestCase extends \Test\TestCase {
                return count($users) == 1 ? reset($users) : $users;
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                foreach($this->users as $user) {
                        $user->delete();
                }
index f5d25608d66603345d270f6b0a18a2de1b321093..2b7e3839e8000f6f1c8085677120c70a1ff2e260 100644 (file)
@@ -39,7 +39,7 @@ class SecurityFilterTest extends TestCase {
        /** @var SecurityFilter */
        private $filter;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->urlGenerator = $this->createMock(IURLGenerator::class);
index 143312addc24632c1292ae970a79b378486032a6..9b34015e946f6cd07d318e305a5adc6becf1caf5 100644 (file)
@@ -46,7 +46,7 @@ class SecurityProviderTest extends TestCase {
        /** @var SecurityProvider */
        private $provider;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->l10n = $this->createMock(IFactory::class);
index 39ca3e2b792020c068d7d31a37166ea5b916e90f..805aa147bece87ce0ef867827d6a2e1cd7423374 100644 (file)
@@ -33,7 +33,7 @@ class SecuritySettingTest extends TestCase {
        /** @var SecuritySetting */
        private $setting;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->l10n = $this->createMock(IL10N::class);
index 49ba48f10d29bbd9ae4b7a9641f33f6bc1a8794b..35ca71179000156daf9f65a4d7af51ca612db031 100644 (file)
@@ -54,7 +54,7 @@ class ApplicationTest extends TestCase {
        /** @var IAppContainer */
        protected $container;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->app = new Application();
                $this->container = $this->app->getContainer();
index 2789fe009741d6bad6267dab4b2a6aa5a23f78cd..d3591c6d67a88a5f4fcab36cbd2a585b0a68d689 100644 (file)
@@ -62,7 +62,7 @@ class AdminSettingsControllerTest extends TestCase {
        /** @var string */
        private $adminUid = 'lololo';
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
@@ -87,7 +87,7 @@ class AdminSettingsControllerTest extends TestCase {
                \OC::$server->getGroupManager()->createGroup('admin')->addUser($user);
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                \OC::$server->getUserManager()->get($this->adminUid)->delete();
 
                parent::tearDown();
index 9b09631226fa91da62072f179884623d3e236e2e..508a39642a5607876c832a74c3c7ea7cdd45f31a 100644 (file)
@@ -76,7 +76,7 @@ class AppSettingsControllerTest extends TestCase {
        /** @var ILogger|MockObject */
        private $logger;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index ff698ffe225b049ced4f18d9a209ddbf669ad30c..435cd390f86c223ee281e947a786fc393eab3192 100644 (file)
@@ -61,7 +61,7 @@ class AuthSettingsControllerTest extends TestCase {
        private $remoteWipe;
        private $uid = 'jane';
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index ed0e7775dc10ab98ca547eb6039531cd9457272d..270e986e307c1a1415ce70dada8c0e7cbb0c00a0 100644 (file)
@@ -48,7 +48,7 @@ class CertificateControllerTest extends \Test\TestCase {
        /** @var  ICertificateManager */
        private $systemCertificateManager;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->request = $this->getMockBuilder(IRequest::class)->getMock();
index 4d6a4c21f00056f2f1145f0048ca8e163c649b05..b038cf2af348af5cfa6f1c14cfbb6ab6cbe080c9 100644 (file)
@@ -87,7 +87,7 @@ class CheckSetupControllerTest extends TestCase {
         */
        private $dirsToRemove = [];
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->request = $this->getMockBuilder(IRequest::class)
index 1607926219e8e48dd11eda6f660677e40a9f2824..8440df6ec4ec1173bb38243801393a42b49a547f 100644 (file)
@@ -41,7 +41,7 @@ class MailSettingsControllerTest extends \Test\TestCase {
        /** @var MailSettingsController */
        private $mailController;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->l = $this->createMock(IL10N::class);
index 58b82bc093026e0ad75b1ecbed68ae6e010de64f..d77f2303a6cb80c4245d54fc6bb1a245667f3825 100644 (file)
@@ -41,7 +41,7 @@ class TwoFactorSettingsControllerTest extends TestCase {
        /** @var TwoFactorSettingsController */
        private $controller;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index 5ca45297c58b382b000c16e475b76ed00f8fbd0f..eb5790a04019f25ba68edf50b398e04a4c8e9cfc 100644 (file)
@@ -74,7 +74,7 @@ class UsersControllerTest extends \Test\TestCase {
        /** @var  IEncryptionModule  | \PHPUnit_Framework_MockObject_MockObject */
        private $encryptionModule;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->userManager = $this->createMock(IUserManager::class);
index f99af1e2f91e5cee7996668fc1fd5157f34db94c..77d606a9535e95b49bdced0b65c3c9f9714eb482 100644 (file)
@@ -57,7 +57,7 @@ class NewUserMailHelperTest extends TestCase {
        /** @var \OCA\Settings\Mailer\NewUserMailHelper */
        private $newUserMailHelper;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->defaults = $this->createMock(Defaults::class);
index 752184bf7c7f9f137a8095d1c295e457f7447c6c..e2434c01b02bb1eb12b96355146398ccf7189021 100644 (file)
@@ -35,7 +35,7 @@ class SubadminMiddlewareTest extends \Test\TestCase {
        /** @var IL10N */
        private $l10n;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->reflector = $this->getMockBuilder(ControllerMethodReflector::class)
                        ->disableOriginalConstructor()->getMock();
index 8cb394101e2b29d27828e37f720711a33bcf1ab2..d0af05df91360f99c4dba85a18c0a9802bdb5e12 100644 (file)
@@ -52,7 +52,7 @@ class AuthtokensTest extends TestCase {
        /** @var Security\Authtokens */
        private $section;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->authTokenProvider = $this->createMock(IAuthTokenProvider::class);
index 5e26454a6faa5cdf2c76762d611a5a213ade2b40..1b47dc874c1dc761c848f0eab1d1c1b1b7c820c2 100644 (file)
@@ -34,7 +34,7 @@ class MailTest extends TestCase {
        /** @var IConfig */
        private $config;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->config = $this->getMockBuilder(IConfig::class)->getMock();
 
index ea9222ab1a708089dddd6a3d4426c9c1813da560..778690de1c8fac833e525ae476aa41654055e13e 100644 (file)
@@ -44,7 +44,7 @@ class SecurityTest extends TestCase {
        /** @var IInitialStateService|MockObject */
        private $initialState;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->manager = $this->getMockBuilder(Manager::class)->disableOriginalConstructor()->getMock();
                $this->userManager = $this->getMockBuilder(IUserManager::class)->getMock();
index bcb990b6b6b19cb66b3a2626a7ad4b0757c27ca7..57c984fdb12002e2f8db57b42c4bb8cd0895481f 100644 (file)
@@ -34,7 +34,7 @@ class ServerTest extends TestCase {
        /** @var IConfig */
        private $config;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->config = $this->createMock(IConfig::class);
 
index 91b2edf14b17752c53463c833142caad721fa87d..37046d9d3199b0f6a6b27a39ef4c61d0739e65a8 100644 (file)
@@ -42,7 +42,7 @@ class SharingTest extends TestCase {
        /** @var  IManager|\PHPUnit_Framework_MockObject_MockObject */
        private $shareManager;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->config = $this->getMockBuilder(IConfig::class)->getMock();
                $this->l10n = $this->getMockBuilder(IL10N::class)->getMock();
index a55469c21e55aa54a98ae7fa8f446b4cc45d04b5..671fcd6f9b44dc322933c0429cadfc661e7b34ee 100644 (file)
@@ -58,7 +58,7 @@ class SecurityTest extends TestCase {
        /** @var Security */
        private $section;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->initialStateService = $this->createMock(IInitialStateService::class);
index b154599419905791c909558546ca25a2ad85eb05..96fce010c1ddc83659d58021c2e32ed2fa47ee4d 100644 (file)
@@ -26,7 +26,7 @@ class CapabilitiesTest extends TestCase {
        /** @var Capabilities */
        private $capabilities;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->capabilities = new Capabilities();
index b7150e6c6dcdfb006ffca4cc7a59bf31ed7e2491..12d8fc4d919f8b2e51db8074dab4f0aed3db6a8c 100644 (file)
@@ -34,7 +34,7 @@ class SettingsTest extends TestCase  {
        /** @var  SettingsManager | \PHPUnit_Framework_MockObject_MockObject */
        private $settingsManager;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->settingsManager = $this->getMockBuilder(SettingsManager::class)
index 744c2d6f3ee1015124a69bf31deb7faaee68e582..8adc249ee610927d06014001ff5d615805a8939a 100644 (file)
@@ -97,7 +97,7 @@ class ShareByMailProviderTest extends TestCase {
        /** @var  CapabilitiesManager | \PHPUnit_Framework_MockObject_MockObject */
        private $capabilitiesManager;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->shareManager = \OC::$server->getShareManager();
@@ -174,10 +174,10 @@ class ShareByMailProviderTest extends TestCase {
 
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                $this->connection->getQueryBuilder()->delete('share')->execute();
 
-               return parent::tearDown();
+               parent::tearDown();
        }
 
        public function testCreate() {
index 40fcea750a66d3f6847bb31e4e33918f51e57b89..0cb6f505371828a1d453b1617a864672c4fabd9d 100644 (file)
@@ -29,7 +29,7 @@ class SettingTest extends TestCase {
        /** @var Setting */
        private $setting;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->l = $this->createMock(IL10N::class);
 
index 6e23ab5f7b9c2ed86602ff6d530a1abf781390d5..b9b7fb60f859e7902b66805715fef05b78b09fea 100644 (file)
@@ -32,7 +32,7 @@ class AdminTest extends TestCase {
        /** @var Admin */
        private $admin;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->admin = new Admin();
index f007de1dbdb2726d9bc2d9b4730c78cac0a0ffa4..76dd680b49aa5ac8cce230c84696c24e72da1fe8 100644 (file)
@@ -55,7 +55,7 @@ class CapabilitiesTest extends TestCase  {
        /** @var Capabilities */
        protected $capabilities;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->theming = $this->createMock(ThemingDefaults::class);
index 85259b9abe714c6c1254540673c1d6a2c3d39896..df0fdd52b3f18a9f648f354377b6c706fe5ecbc2 100644 (file)
@@ -61,7 +61,7 @@ class IconControllerTest extends TestCase {
        /** @var ImageManager */
        private $imageManager;
 
-       public function setUp() {
+       public function setUp(): void {
                $this->request = $this->createMock(IRequest::class);
                $this->themingDefaults = $this->createMock(ThemingDefaults::class);
                $this->iconBuilder = $this->createMock(IconBuilder::class);
index 63e5d1e285adf91da68c037f60efb106d02e5ca1..a626fdebe6d9aa6c1123ea4b1914047c5b5690a4 100644 (file)
@@ -83,7 +83,7 @@ class ThemingControllerTest extends TestCase {
        /** @var IURLGenerator */
        private $urlGenerator;
 
-       public function setUp() {
+       public function setUp(): void {
                $this->request = $this->createMock(IRequest::class);
                $this->config = $this->createMock(IConfig::class);
                $this->themingDefaults = $this->createMock(ThemingDefaults::class);
@@ -118,7 +118,7 @@ class ThemingControllerTest extends TestCase {
                        $this->imageManager
                );
 
-               return parent::setUp();
+               parent::setUp();
        }
 
        public function dataUpdateStylesheetSuccess() {
index 69ec6495605e716922945e3fec1f83e40fc0e50b..a6999c331ce494ad42e8199dd55163f966df7a55 100644 (file)
@@ -54,7 +54,7 @@ class IconBuilderTest extends TestCase {
        /** @var IAppManager */
        protected $appManager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(IConfig::class);
index 0f03c565e917af181c1aa5acc95052eb17df0aae..56fa63bea7be24fe805e030f9c3f086812c27621 100644 (file)
@@ -51,7 +51,7 @@ class ImageManagerTest extends TestCase {
        /** @var ILogger|\PHPUnit_Framework_MockObject_MockObject */
        private $logger;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->config = $this->createMock(IConfig::class);
                $this->appData = $this->createMock(IAppData::class);
index a46e28235f5529dbcd42b89bdf77c482e69ef6b8..b274e5868d6815cd596097e8b4b9b74edcebf2f7 100644 (file)
@@ -49,7 +49,7 @@ class ServicesTest extends TestCase  {
        /** @var \OCP\AppFramework\IAppContainer */
        protected $container;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->app = new App('theming');
                $this->container = $this->app->getContainer();
index 5943866edc12d8f35a0ebb7f32a4ca20660e48f9..4e89366c3f21517d80a8ac847b67a83389b1fad1 100644 (file)
@@ -50,7 +50,7 @@ class AdminTest extends TestCase {
        /** @var IL10N */
        private $l10n;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->config = $this->createMock(IConfig::class);
                $this->l10n = $this->createMock(IL10N::class);
index 09abf9e34f5cbd30b13443122d6210d64c361216..10d6bb172f24c2f2ba791464d44f5f7b38b82ab3 100644 (file)
@@ -37,7 +37,7 @@ class SectionTest extends TestCase {
        /** @var Section */
        private $section;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->url = $this->createMock(IURLGenerator::class);
                $this->l = $this->createMock(IL10N::class);
index 71b8ba97e9b9e88e0a60dec025b4eb63f4e99972..b7413eaf47d74aa313b35eb9b02c366e38b0a48b 100644 (file)
@@ -72,7 +72,7 @@ class ThemingDefaultsTest extends TestCase {
        /** @var INavigationManager|\PHPUnit_Framework_MockObject_MockObject */
        private $navigationManager;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->config = $this->createMock(IConfig::class);
                $this->l10n = $this->createMock(IL10N::class);
index 9fa5dd91da82825a76ba44b590f4825edee7fc4b..f8e1750113c49990a5db134eb4458ddaf2d1e28f 100644 (file)
@@ -46,7 +46,7 @@ class UtilTest extends TestCase {
        /** @var IAppManager */
        protected $appManager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->config = $this->createMock(IConfig::class);
                $this->appData = $this->createMock(IAppData::class);
index 76cdac3c21a28fa6ea424e835762a0ae35a4f1b6..a537600003b34e9a4abade56b1bd40e65b8ddd51 100644 (file)
@@ -49,7 +49,7 @@ class BackupCodeMapperTest extends TestCase {
                $qb->execute();
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->db = \OC::$server->getDatabaseConnection();
@@ -58,7 +58,7 @@ class BackupCodeMapperTest extends TestCase {
                $this->resetDB();
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                parent::tearDown();
 
                $this->resetDB();
index 679f111a75b0856e259212fc4e6103b21d22750b..872a46b6259007c0c5513275d45349875d2f78ac 100644 (file)
@@ -41,7 +41,7 @@ class BackupCodeStorageTest extends TestCase {
        /** @var IManager|\PHPUnit_Framework_MockObject_MockObject */
        private $notificationManager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->storage = \OC::$server->query(BackupCodeStorage::class);
index 17d332691d2b737338f942ea9583fd4491a593a8..27a6e3f87723f20c1973e7aa16b3a0bb18b13416 100644 (file)
@@ -46,7 +46,7 @@ class ProviderTest extends TestCase {
        /** @var Provider */
        private $provider;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->l10n = $this->createMock(IFactory::class);
index 235414ffe75109dd989dc68fd4ca0262559f37a5..2e68c0e427b254fa6b0debdf490e6857904c31f6 100644 (file)
@@ -55,7 +55,7 @@ class CheckBackupCodeTest extends TestCase {
        /** @var CheckBackupCodes */
        private $checkBackupCodes;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->userManager = $this->createMock(IUserManager::class);
index fe68da8ebf5970d1f8894154ef54153663f6b061..a6dda9ce6aad45b26918799655535db413218272 100644 (file)
@@ -54,7 +54,7 @@ class RememberBackupCodesJobTest extends TestCase {
        /** @var RememberBackupCodesJob */
        private $job;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->registry = $this->createMock(IRegistry::class);
index 4c4fde1e0b0b824e31563fe9e61355d5d825b9f8..c8274f9494c35dab7eff6679b9de66665b5d87a6 100644 (file)
@@ -44,7 +44,7 @@ class SettingsControllerTest extends TestCase {
        /** @var SettingsController */
        private $controller;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->request = $this->getMockBuilder(IRequest::class)->getMock();
index 44ea88cdb0b7a2b4b045991c18c435627bc7e3d8..65a5a8b61c9669544f252e5759a4e13b424e53ff 100644 (file)
@@ -46,7 +46,7 @@ class ActivityPublisherTest extends TestCase {
        /** @var ActivityPublisher */
        private $listener;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->activityManager = $this->createMock(IManager::class);
index 21dde19d32947c7fcd7d8ca3fd881849f7418966..cfa3799bb20f8fa117d74db9dda83805d2a072c8 100644 (file)
@@ -40,7 +40,7 @@ class ClearNotificationsTest extends TestCase {
        /** @var ClearNotifications */
        private $listener;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->notificationManager = $this->createMock(IManager::class);
index c357fdeb2f0ccf4e6627ab0c762a0ef60fd5a5ef..05ef1cdb10ad1686cfdfb74ebe217e2b598c2109 100644 (file)
@@ -44,7 +44,7 @@ class ProviderDisabledTest extends TestCase {
        /** @var ProviderDisabled */
        private $listener;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->registy = $this->createMock(IRegistry::class);
index 8a4ce56d7cbe2b8e2d036144a5eecb95b464a306..ef35705023f3ba3b17bb740816d9977960150892 100644 (file)
@@ -44,7 +44,7 @@ class ProviderEnabledTest extends TestCase {
        /** @var ProviderEnabled */
        private $listener;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->registy = $this->createMock(IRegistry::class);
index 7ae6eab3358791bea187996aded1d6c56db2899f..6d91ea36ee02d86f9e257510960ae6ee0e652f5b 100644 (file)
@@ -43,7 +43,7 @@ class RegistryUpdaterTest extends TestCase {
        /** @var RegistryUpdater */
        private $listener;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->registry = $this->createMock(IRegistry::class);
index 3c36a35f7c150d43af9f1b0b716d3b6940f29a77..6f9834aecb07cb91f25ed904fb6dd9f83361a60a 100644 (file)
@@ -36,7 +36,7 @@ class CheckBackupCodeTest extends TestCase {
        /** @var CheckBackupCodes */
        private $checkBackupsCodes;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->jobList = $this->createMock(IJobList::class);
index 0f03fba7de82984d3fddd9ccda5ab7acae9079c2..0bbdc8619b44796aa6ab29e786237519a340ccf5 100644 (file)
@@ -43,7 +43,7 @@ class NotifierTest extends TestCase {
        /** @var IL10N|MockObject */
        protected $l;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->l = $this->createMock(IL10N::class);
index 4dab536c55293283a2919887626ea9c2c7161b02..ea9f7b958232289533bf5ff6e09e9a9308b77c25 100644 (file)
@@ -52,7 +52,7 @@ class BackupCodesProviderTest extends TestCase {
        /** @var BackupCodesProvider */
        private $provider;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->appName = "twofactor_backupcodes";
index 7c662d3ef8303c01b5617359783d7151b0b810c5..f635fc6535c60d6b8cd0df1951294b112ec8d177 100644 (file)
@@ -50,7 +50,7 @@ class BackupCodeStorageTest extends TestCase {
        /** @var BackupCodeStorage */
        private $storage;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->mapper = $this->createMock(BackupCodeMapper::class);
index 98b08e633bb4c7dc8a1222c7cffde196202e37a2..38baeb907b5af41a4ad86b80a7731f06d39b7297 100644 (file)
@@ -52,7 +52,7 @@ class AdminControllerTest extends TestCase {
        /** @var IL10N|\PHPUnit_Framework_MockObject_MockObject */
        private $l10n;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index 694051d33f68b3b77df9a57c82d9dbd5d409221c..9e35194f066658536fca19cb676ffaa619a03357 100644 (file)
@@ -52,7 +52,7 @@ class BackgroundJobTest extends TestCase {
        /** @var Installer|\PHPUnit_Framework_MockObject_MockObject */
        protected $installer;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(IConfig::class);
index f97ff776c934e9bc369bf2d86e33cf3e20b66ce2..d7a3fbbb1494c0a9cecfea8e23cc0d44f9f7bba4 100644 (file)
@@ -50,7 +50,7 @@ class NotifierTest extends TestCase {
        /** @var IGroupManager|\PHPUnit_Framework_MockObject_MockObject */
        protected $groupManager;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->urlGenerator = $this->createMock(IURLGenerator::class);
index d78a5ed94ccac4ee0987abb0d794c2ab0cb4712d..c604da85706b7507bdd96d4cb09c789b6de8fd5e 100644 (file)
@@ -37,7 +37,7 @@ class ResetTokenBackgroundJobTest extends TestCase {
        /** @var ResetTokenBackgroundJob */
        private $resetTokenBackgroundJob;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->config = $this->createMock(IConfig::class);
                $this->timeFactory = $this->createMock(ITimeFactory::class);
index d2d4b503bad2f4301db3670781151ebe1daccba9..a0b7c4b0fe306a86c8485ac991bc1df80a32cb87 100644 (file)
@@ -55,7 +55,7 @@ class AdminTest extends TestCase {
        /** @var IRegistry|\PHPUnit_Framework_MockObject_MockObject */
        private $subscriptionRegistry;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(IConfig::class);
index fc70d2d94510024d3b2fc5d6f1e6dccea71653b8..1ad4507455447e770451a4030f7c3e22a2246feb 100644 (file)
@@ -38,7 +38,7 @@ class UpdateCheckerTest extends TestCase {
        /** @var UpdateChecker */
        private $updateChecker;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->updater = $this->createMock(VersionCheck::class);
index a51a396cfff476c9e7afe3f95eed3395dcd39511..0d327ce2e067b914ff6afee48b63fa0dcb3c78fe 100644 (file)
@@ -78,7 +78,7 @@ class AccessTest extends TestCase {
        /** @var Access */
        private $access;
 
-       public function setUp() {
+       public function setUp(): void {
                $this->connection = $this->createMock(Connection::class);
                $this->ldap = $this->createMock(LDAP::class);
                $this->userManager = $this->createMock(Manager::class);
index 6e45f1638674789ce0afb0e08aa1a51b1c20ab34..5820fff25ed33e2339e48c342f3e25263d680b4f 100644 (file)
@@ -29,7 +29,7 @@ class ConfigurationTest extends \Test\TestCase {
        /** @var Configuration */
        protected $configuration;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->configuration = new Configuration('t01', false);
        }
index 7a5da72fcdb24fcb5e4fab5f5f5daadc8c256b47..f08b5d9bf1dd45a107405cc8504567aeb0c8ff52 100644 (file)
@@ -44,7 +44,7 @@ class ConnectionTest extends \Test\TestCase {
        /** @var  Connection */
        protected $connection;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->ldap       = $this->createMock(ILDAPWrapper::class);
index 54d7d8868cedcb33473a0be92d34e3dcd61d9de5..3804938199d5da56962aaa86b6a4feb814f322fa 100644 (file)
@@ -36,7 +36,7 @@ class HelperTest extends \Test\TestCase {
        /** @var Helper */
        private $helper;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(IConfig::class);
index 38f575db75b1d7bb479c8c451e6361827195ecd8..493aa49c467896299df03a7749d4d474d8e2cb89 100644 (file)
@@ -94,7 +94,7 @@ class ExceptionOnLostConnection {
         *
         * @throws \Exception
         */
-       public function setUp() {
+       public function setUp(): void {
                require_once __DIR__  . '/../../../../lib/base.php';
                \OC_App::loadApps(['user_ldap']);
 
index 75ffd0e8280656f59f959b11c40e75234f718b64..d16ce6672df83323d87e2a38a121346e79125c18 100644 (file)
@@ -69,7 +69,7 @@ class SyncTest extends TestCase {
        /** @var AccessFactory|\PHPUnit_Framework_MockObject_MockObject */
        protected $accessFactory;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->helper = $this->createMock(Helper::class);
index deaa368806c1dac065610c246829484a92edce99..cbce73be29526978e5c092210a1a95c1f635680e 100644 (file)
@@ -43,7 +43,7 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface;
  */
 class LDAPProviderTest extends \Test\TestCase {
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
        }
        
index 3e754dbd272d9fbd1ab822f462d484bd5bd4e3ef..a6c097c6f85e5cc22e588cdcfa85182b63d65df8 100644 (file)
@@ -30,7 +30,7 @@ class LDAPTest extends TestCase  {
        /** @var LDAP|\PHPUnit_Framework_MockObject_MockObject */
        private $ldap;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->ldap = $this->getMockBuilder(LDAP::class)
                        ->setMethods(['invokeLDAPMethod'])
index 37502027df75d7fd203bbd04119fb60551657420..323a3464ce8d12c5af9fa8c642d92cb4c40bb14f 100644 (file)
@@ -58,7 +58,7 @@ abstract class AbstractUUIDFixTest extends TestCase {
        /** @var bool */
        protected $isUser = true;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->ldap = $this->createMock(LDAP::class);
index a85c4a4dc5e2eb43d8e9f6fc2c622d0316c73a90..c0bbd8098b1a23c5a49749713df4fb8fddfc5f6a 100644 (file)
@@ -35,7 +35,7 @@ use OCA\User_LDAP\Tests\Migration\AbstractUUIDFixTest;
  * @group DB
  */
 class UUIDFixGroupTest extends AbstractUUIDFixTest {
-       public function setUp() {
+       public function setUp(): void {
                $this->isUser = false;
                parent::setUp();
 
index 0536d0b10af96cfcd352f206f41d636d4acddf93..32f601f2b11567180b0d8c81e9b967afbd2a133f 100644 (file)
@@ -47,7 +47,7 @@ class UUIDFixInsertTest extends TestCase {
        /** @var  UUIDFixInsert */
        protected $job;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->jobList = $this->createMock(IJobList::class);
index 193e460c3c7801630e611f665fe677353fcfff0f..8e91a00156b67df602abbe039b9470cb8098c389 100644 (file)
@@ -34,7 +34,7 @@ use OCA\User_LDAP\User_Proxy;
  * @group DB
  */
 class UUIDFixUserTest extends AbstractUUIDFixTest {
-       public function setUp() {
+       public function setUp(): void {
                $this->isUser = true;
                parent::setUp();
 
index 84004b9d46505980f6b0f97c0a28e625cded2e26..d421c379bf59ebd130a4dbeec5ef333f8a745b30 100644 (file)
@@ -43,7 +43,7 @@ class AdminTest extends TestCase {
        /** @var IL10N */
        private $l10n;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->l10n = $this->getMockBuilder(IL10N::class)->getMock();
 
index 65dff000af3a9c2190045567fac59477b7ae23ab..0bd7a8010b6990d280aeaebbae9c1922333bde8c 100644 (file)
@@ -37,7 +37,7 @@ class SectionTest extends TestCase {
        /** @var Section */
        private $section;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->url = $this->createMock(IURLGenerator::class);
                $this->l = $this->createMock(IL10N::class);
index 916b5119ce067f5baa5e4c9dde54b23b52d3ff50..e81a81f742f43e771f3016a422ab1193fa96397b 100644 (file)
@@ -48,7 +48,7 @@ class DeletedUsersIndexTest extends \Test\TestCase {
        /** @var UserMapping|\PHPUnit_Framework_MockObject_MockObject */
        protected $mapping;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                // no mocks for those as tests go against DB
@@ -63,9 +63,9 @@ class DeletedUsersIndexTest extends \Test\TestCase {
                $this->dui = new DeletedUsersIndex($this->config, $this->db, $this->mapping);
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                $this->config->deleteAppFromAllUsers('user_ldap');
-               return parent::tearDown();
+               parent::tearDown();
        }
 
        public function testMarkAndFetchUser() {
index 1fb548f59bf88e716e12fe605787267fac3b581b..a8abd1e46677660816fe84c5e3b48d6ba3716384 100644 (file)
@@ -86,7 +86,7 @@ class ManagerTest extends \Test\TestCase {
        /** @var Manager */
        protected $manager;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->access = $this->createMock(Access::class);
index c4563bf1f31142926a6bbcedbbe72ceb13963540..992d3ce990cda18b3d20f5e750976d894b5a4e74 100644 (file)
@@ -76,7 +76,7 @@ class UserTest extends \Test\TestCase {
        /** @var User */
        protected $user;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->connection = $this->createMock(Connection::class);
index 6671742c4284e79da340002b16772e93f6a33964..e8076a051a152e9410ca03d21df3230633f80f06 100644 (file)
@@ -76,7 +76,7 @@ class User_LDAPTest extends TestCase {
        /** @var Manager|\PHPUnit_Framework_MockObject_MockObject */
        protected $userManager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                \OC_User::clearBackends();
index 126391401e5a6baa09e6ae13a363cac2866056ad..02a1815804c86be0cdfc6e9dc9618b642b7b9d6c 100644 (file)
@@ -49,7 +49,7 @@ class User_ProxyTest extends TestCase  {
        /** @var UserPluginManager|\PHPUnit_Framework_MockObject_MockObject */
        private $userPluginManager;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->ldapWrapper = $this->createMock(ILDAPWrapper::class);
index 1cae2f58e5f199df645b577c3914eedcff6bf4db..05b0c5a9449c66318592e9006ade166d0aaf0a42 100644 (file)
@@ -42,7 +42,7 @@ use Test\TestCase;
  * @package OCA\User_LDAP\Tests
  */
 class WizardTest extends TestCase {
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                //we need to make sure the consts are defined, otherwise tests will fail
                //on systems without php5_ldap
index 9e313122a1f6682b42a6b093a79548c220e9f1bf..c986a2daab58e71fb36974eb34d8f5b82401dda9 100644 (file)
@@ -44,7 +44,7 @@ class RequestRemoteAddressTest extends \Test\TestCase {
                return $l;
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->request = $this->getMockBuilder(IRequest::class)
index 519b5112f3f579b7b97bf4e171c0667cbad0af65..d8628b7c6f8ee4130363922dc77b3250a1f82434 100644 (file)
@@ -43,7 +43,7 @@ class RequestTimeTest extends \Test\TestCase {
                return $l;
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->timeFactory = $this->getMockBuilder('OCP\AppFramework\Utility\ITimeFactory')
index fe9da844cccb2731f638f186bf61b9a89c1ce21b..79e3de448749d8baa58a34dd93c0402b133ed08f 100644 (file)
@@ -34,7 +34,7 @@ class RequestUserAgentTest extends TestCase {
        /** @var RequestUserAgent */
        protected $check;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index 92111a6989b35cbf81f35c40117e3607ac03f124..0f142e642edb69b9767593778e12cfe63cc37a10 100644 (file)
@@ -64,7 +64,7 @@ class ManagerTest extends TestCase {
        /** @var MockObject|L10N */
        protected $l;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->db = \OC::$server->getDatabaseConnection();
@@ -91,7 +91,7 @@ class ManagerTest extends TestCase {
                $this->clearTables();
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $this->clearTables();
                parent::tearDown();
        }
index d9c43a79c2640b209cfde8439cde3947a8926b72..f066eaba401c40d968cc3cba3bcf364ea147e4d2 100644 (file)
@@ -36,7 +36,7 @@ class AppsDisableTest extends TestCase {
        /** @var CommandTester */
        private $commandTester;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $command = new Disable(
index d2bda141303cfd2343cf0123596fa5f9da78c09f..a30bef5932684677a5ff96d4b6c8d3a48e6661e2 100644 (file)
@@ -36,7 +36,7 @@ class AppsEnableTest extends TestCase {
        /** @var CommandTester */
        private $commandTester;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $command = new Enable(
index f74fd73d6978505d75baa5c643ad9549d3bb9f48..251de227d67a5556e3c276c9ec214bbfaae44b8d 100644 (file)
@@ -40,7 +40,7 @@ class DeleteConfigTest extends TestCase {
        /** @var \Symfony\Component\Console\Command\Command */
        protected $command;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->config = $this->getMockBuilder(IConfig::class)
index 7ea3fbb587c96cf8d23ba360013b2e8007f81bf5..7ecb09b8f82b816ce9300be4a7211e93b9ce6829 100644 (file)
@@ -40,7 +40,7 @@ class GetConfigTest extends TestCase {
        /** @var \Symfony\Component\Console\Command\Command */
        protected $command;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $config = $this->config = $this->getMockBuilder(IConfig::class)
index f66390871deeb7fb10dc14d812fbdafef54eeb14..988e965d31710ab61adf198e848695b9ba6e9869 100644 (file)
@@ -40,7 +40,7 @@ class SetConfigTest extends TestCase {
        /** @var \Symfony\Component\Console\Command\Command */
        protected $command;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $config = $this->config = $this->getMockBuilder(IConfig::class)
index 7afa47d353645120ec38b272ea74dde58d1e47d5..fa1ed15167811fa35e198915bc647cae02149d63 100644 (file)
@@ -40,7 +40,7 @@ class ImportTest extends TestCase {
        /** @var \Symfony\Component\Console\Command\Command */
        protected $command;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $config = $this->config = $this->getMockBuilder(IConfig::class)
index 861c1f59d5ea01fd4b10cbc9ad4f462bc4521c96..203feaacbf1517c808000903d42973d4ad9e6f10 100644 (file)
@@ -44,7 +44,7 @@ class ListConfigsTest extends TestCase {
        /** @var \Symfony\Component\Console\Command\Command */
        protected $command;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $systemConfig = $this->systemConfig = $this->getMockBuilder(SystemConfig::class)
index 5ac4c853df3352a607ba9afb094616d664817234..21ef3e339814d24080e9ee203b833e77d80b3c1a 100644 (file)
@@ -40,7 +40,7 @@ class DeleteConfigTest extends TestCase {
        /** @var \Symfony\Component\Console\Command\Command */
        protected $command;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $systemConfig = $this->systemConfig = $this->getMockBuilder(SystemConfig::class)
index fd5db69fec975df8319943ae4030b54a2e3f352f..1d8975f7f7f2f1e36a236fba1c1051f9dc115a22 100644 (file)
@@ -40,7 +40,7 @@ class GetConfigTest extends TestCase {
        /** @var \Symfony\Component\Console\Command\Command */
        protected $command;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $systemConfig = $this->systemConfig = $this->getMockBuilder(SystemConfig::class)
index bb8d2c4b96271f9054aff0e75b10442c41059a16..e3cfa89093d871eb26edcb16564ed74fe3e83cf2 100644 (file)
@@ -40,7 +40,7 @@ class SetConfigTest extends TestCase {
        /** @var \Symfony\Component\Console\Command\Command */
        protected $command;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $systemConfig = $this->systemConfig = $this->getMockBuilder(SystemConfig::class)
index 811b64029c660b7ee40ec798d0fcfa960e32841d..0f56cf53fa8ac968ebee66f334ccd2b3567c08a3 100644 (file)
@@ -63,7 +63,7 @@ class ChangeKeyStorageRootTest extends TestCase {
        /** @var \OCP\UserInterface |  \PHPUnit_Framework_MockObject_MockObject */
        protected $userInterface;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->view = $this->getMockBuilder(View::class)->getMock();
index 508d5da95f74bbd93bb37cb290d9cc9d694d1a3c..7fa95351045c4175c8071039227e7d0dcb73b85a 100644 (file)
@@ -54,7 +54,7 @@ class DecryptAllTest extends TestCase {
        /** @var \PHPUnit_Framework_MockObject_MockObject | \OC\Encryption\DecryptAll */
        protected $decryptAll;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->config = $this->getMockBuilder(IConfig::class)
index 77a690fe2649b0c459523e0afb124fde31d8baa9..f9035a8478874a3eb2064cfcc8f66e986f905d56 100644 (file)
@@ -39,7 +39,7 @@ class DisableTest extends TestCase {
        /** @var \Symfony\Component\Console\Command\Command */
        protected $command;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $config = $this->config = $this->getMockBuilder(IConfig::class)
index eb1b7842385ddb54aa48cf214feda4c5542f667f..5c8fc826af1f4294b350d9bf85cdaf216b2581d4 100644 (file)
@@ -42,7 +42,7 @@ class EnableTest extends TestCase {
        /** @var \Symfony\Component\Console\Command\Command */
        protected $command;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $config = $this->config = $this->getMockBuilder(IConfig::class)
index 7fa4b5e5bbe932db47ef5d9ad13b9497c9a9ce72..9c9818475f534fbe8759c2fa93564365dc3c78d3 100644 (file)
@@ -58,7 +58,7 @@ class EncryptAllTest extends TestCase {
        /** @var  EncryptAll */
        protected $command;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->config = $this->getMockBuilder(IConfig::class)
index 2dc62d42bfabaf058dd457316ec4a5f335a38bf7..0776ef42b483123df4bcdaaf23637aa8864b1556 100644 (file)
@@ -42,7 +42,7 @@ class SetDefaultModuleTest extends TestCase {
        /** @var \Symfony\Component\Console\Command\Command */
        protected $command;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->manager = $this->getMockBuilder(IManager::class)
index c7010e53e58de9d354f7b5ef60c95085a9b98385..ea30a5d3d68ec9aed797d71b6311019528267104 100644 (file)
@@ -44,7 +44,7 @@ class AddTest extends TestCase {
        /** @var OutputInterface|\PHPUnit_Framework_MockObject_MockObject */
        private $output;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->groupManager = $this->createMock(IGroupManager::class);
index 7660aad1192be23ffc48ee71bb3952faca16adf0..85288d9e29c8165576dd7de78735ec25c883ed0e 100644 (file)
@@ -49,7 +49,7 @@ class AddUserTest extends TestCase {
        /** @var OutputInterface|\PHPUnit_Framework_MockObject_MockObject */
        private $output;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->groupManager = $this->createMock(IGroupManager::class);
index f9b1cbbe3a8193090c6acff4d671f3e4b1c5bd18..4c2acbbad94165d085af27c9e29845669f9e3e90 100644 (file)
@@ -44,7 +44,7 @@ class DeleteTest extends TestCase {
        /** @var OutputInterface|\PHPUnit_Framework_MockObject_MockObject */
        private $output;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->groupManager = $this->createMock(IGroupManager::class);
index ab089c934225a42abab506e5a357b0aa240a1b96..71697d89401f0505cada37e32396eb9e150950fd 100644 (file)
@@ -45,7 +45,7 @@ class ListCommandTest extends TestCase {
        /** @var OutputInterface|\PHPUnit_Framework_MockObject_MockObject */
        private $output;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->groupManager = $this->createMock(IGroupManager::class);
index 8a75571e3cbdae67563da460415568096448bbac..7e835f584789951bab03dd944290c030d3b0b95e 100644 (file)
@@ -49,7 +49,7 @@ class RemoveUserTest extends TestCase {
        /** @var OutputInterface|\PHPUnit_Framework_MockObject_MockObject */
        private $output;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->groupManager = $this->createMock(IGroupManager::class);
index 4b8845277da561125ef9a36d632c815d7367eff1..524a193d86fb3afad995fa69f502c68a974a144e 100644 (file)
@@ -39,7 +39,7 @@ class FileTest extends TestCase {
        /** @var \Symfony\Component\Console\Command\Command */
        protected $command;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $config = $this->config = $this->getMockBuilder(IConfig::class)
index 2044fc4de90699d0128ffb2a5e5acb58e462542f..92907948fb2ffb22b2f0a3a09bccd9ec9af1f7f9 100644 (file)
@@ -39,7 +39,7 @@ class ManageTest extends TestCase {
        /** @var \Symfony\Component\Console\Command\Command */
        protected $command;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $config = $this->config = $this->getMockBuilder(IConfig::class)
index 90ffa50c0120b8bd59722d62c4cd66e753c12164..5cc816627e692fe7cebbe3ae502f125ba2fbe345 100644 (file)
@@ -41,7 +41,7 @@ class DataFingerprintTest extends TestCase {
        /** @var \Symfony\Component\Console\Command\Command */
        protected $command;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->config = $this->getMockBuilder(IConfig::class)->getMock();
index 777570086334513f99fdd1ef7e93bbe3c09ad0ac..3260879686488d6779c26ee8bb24f0266c70658f 100644 (file)
@@ -44,7 +44,7 @@ class UpdateDBTest extends TestCase {
        /** @var \Symfony\Component\Console\Command\Command */
        protected $command;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->detector = $this->getMockBuilder(Detection::class)
index 895a06bbec195daf5ce61f78a212928b370cf65d..1e8af354d50ded885b96db37cdbf6995a00c6dce 100644 (file)
@@ -48,7 +48,7 @@ class ModeTest extends TestCase {
         *
         * @return void
         */
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->config = $this->getMockBuilder(IConfig::class)
                        ->getMock();
index 73141cefcbdcffbb622eedafbd5922403b95a261..ace756b26470b23e4ece3325e7df9e72af3a898e 100644 (file)
@@ -50,7 +50,7 @@ class UpdateThemeTest extends TestCase {
        /** @var \Symfony\Component\Console\Command\Command */
        protected $command;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->detector = $this->createMock(Detection::class);
index 227283decf6b1c59a8eb6c2d30d11bc86bedbacb..24aaa9abce22fdb995d4394fed19153ca7b39458 100644 (file)
@@ -40,7 +40,7 @@ class CleanupTest extends TestCase {
        /** @var CommandTester */
        private $cmd;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->registry = $this->createMock(IRegistry::class);
index 30ebc007dc150797d6b997fa1ba0ee69205eb17b..9741f5b2b5214939b51d80d5d5602b18b64af228 100644 (file)
@@ -45,7 +45,7 @@ class DisableTest extends TestCase {
        /** @var CommandTester */
        private $command;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->providerManager = $this->createMock(ProviderManager::class);
index f31f92da4a5f8156710adce186b2e0c38e7301d8..bd74bde2e8105a2d51a813b1696bfcc043bf8915 100644 (file)
@@ -45,7 +45,7 @@ class EnableTest extends TestCase {
        /** @var CommandTester */
        private $command;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->providerManager = $this->createMock(ProviderManager::class);
index 2d9b77e18c23b6a7951a216b47f5864eb7e996bd..aa2cbc10620470e16fb00f5d9b9b80d0aace76d0 100644 (file)
@@ -41,7 +41,7 @@ class EnforceTest extends TestCase {
        /** @var CommandTester */
        private $command;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->mandatoryTwoFactor = $this->createMock(MandatoryTwoFactor::class);
index 580e137fe32f1e3d8b6c01bc61f88a321dff13e4..8d1b28862d30edeb53427fa70880dd91d61eb8f4 100644 (file)
@@ -45,7 +45,7 @@ class StateTest extends TestCase {
        /** @var CommandTester|MockObject */
        private $cmd;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->registry = $this->createMock(IRegistry::class);
index 1b94d37cfc4972f4e92e95f23abf2770aed90abc..9dc920894d75cb639956821eca79893a0d006bd1 100644 (file)
@@ -40,7 +40,7 @@ class DeleteTest extends TestCase {
        /** @var \Symfony\Component\Console\Command\Command */
        protected $command;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $userManager = $this->userManager = $this->getMockBuilder(IUserManager::class)
index 019fedc1da9ed696b269e460cdf4dc43dd3f19f9..5456118f67c6e898406f0fb64a1fed91929e578c 100644 (file)
@@ -42,7 +42,7 @@ class DisableTest extends TestCase {
        /** @var Disable */
        protected $command;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->userManager = $this->createMock(IUserManager::class);
index 9a3df13efe032246caa7a2c8249298d86f45dcd2..4a723ca1167185d4d50b3da7f45f63c2bba95c0d 100644 (file)
@@ -42,7 +42,7 @@ class EnableTest extends TestCase {
        /** @var Disable */
        protected $command;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->userManager = $this->createMock(IUserManager::class);
index cceefb98810c4c7dec7ab12f72c03282e724a4b5..f6ee4796454fcc833c27765409b596488c8428be 100644 (file)
@@ -40,7 +40,7 @@ class LastSeenTest extends TestCase {
        /** @var \Symfony\Component\Console\Command\Command */
        protected $command;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $userManager = $this->userManager = $this->getMockBuilder(IUserManager::class)
index 784183c72c3e1c96faf1359660d49dc9879c1c7c..7d717343348ef6b237b121c450e0d6f12c14d317 100644 (file)
@@ -42,7 +42,7 @@ class SettingTest extends TestCase {
        /** @var \Symfony\Component\Console\Output\OutputInterface|\PHPUnit_Framework_MockObject_MockObject */
        protected $consoleOutput;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->userManager = $this->getMockBuilder(IUserManager::class)
index a7be7a90b0999b5a693ec5e72573f756f048ac3c..00a4dd2b5fa3ae44b55866d003a5b64d25d7662c 100644 (file)
@@ -64,7 +64,7 @@ class AppPasswordControllerTest extends TestCase {
        /** @var AppPasswordController */
        private $controller;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->session = $this->createMock(ISession::class);
index 8ff0542cb0b2a40a83fdca004f79e37d54af9006..ea62b5021969685f641fad40ef8d35a9a8801bc5 100644 (file)
@@ -41,7 +41,7 @@ class AutoCompleteControllerTest extends TestCase {
        /** @var  AutoCompleteController */
        protected $controller;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                /** @var IRequest $request */
index 6f82607dc028ee0d97cea499eaebb93bb47e2b58..e43196824c1d108f1140f0dcab8ec555febd57ed 100644 (file)
@@ -79,7 +79,7 @@ class AvatarControllerTest extends \Test\TestCase {
        /** @var TimeFactory|\PHPUnit_Framework_MockObject_MockObject */
        private $timeFactory;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->avatarManager = $this->getMockBuilder('OCP\IAvatarManager')->getMock();
@@ -121,7 +121,7 @@ class AvatarControllerTest extends \Test\TestCase {
                $this->avatarFile->method('getEtag')->willReturn('my etag');
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                parent::tearDown();
        }
 
index a97f2eabc27092d46a44fee184402aeb839f3d15..74eebf61749f955e3ff180f521e6628cfd353152 100644 (file)
@@ -44,7 +44,7 @@ class CSRFTokenControllerTest extends TestCase {
        /** @var CsrfTokenManager|PHPUnit_Framework_MockObject_MockObject */
        private $tokenManager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index 55f05c975edeb099428fb18a68828ec37c3e80a2..ac9d9d37993b3aded2e040109826d57e14bc1e3a 100644 (file)
@@ -49,7 +49,7 @@ class ChangePasswordControllerTest extends \Test\TestCase {
        /** @var ChangePasswordController */
        private $controller;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->userManager = $this->createMock(\OC\User\Manager::class);
index 1401eac67d82168fe2ab98562556aa0673656a1a..ebe43ba560f5f11e089fbb247b3bf8e663cb4ec6 100644 (file)
@@ -74,7 +74,7 @@ class ClientFlowLoginControllerTest extends TestCase {
        /** @var ClientFlowLoginController */
        private $clientFlowLoginController;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index c3ed740432c04f08806464d56fbd770dc2d9df05..d8ce67b18f167852ae19bd566cf528739348024c 100644 (file)
@@ -58,7 +58,7 @@ class ClientFlowLoginV2ControllerTest extends TestCase {
        /** @var ClientFlowLoginV2Controller */
        private $controller;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index 92a185cf2adc2bc94695d19bc33c3d28b4bf5128..24f1adb10f20c67b741aebf150370d21406d9182 100644 (file)
@@ -47,7 +47,7 @@ class ContactsMenuControllerTest extends TestCase {
        /** @var ContactsMenuController */
        private $controller;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index faab89db40cd31f159529a70abe25a2367b012a6..edee29cee57d80e06beefddb93cf371be190d8b3 100644 (file)
@@ -48,7 +48,7 @@ class CssControllerTest extends TestCase {
        /** @var CssController */
        private $controller;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                /** @var Factory|\PHPUnit_Framework_MockObject_MockObject $factory */
index f720478e499ecb392e8f633127b95a4e2079d3c9..dd8188b002f7e3d550e565575de98d91efa5c4ac 100644 (file)
@@ -48,7 +48,7 @@ class GuestAvatarControllerTest extends \Test\TestCase {
        /**
         * Sets up the test environment.
         */
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->logger = $this->getMockBuilder(ILogger::class)->getMock();
index e05f5bf5ded8b1cce37f412ffe4a372e7a6bc51e..503e97d1c53faaf8896f14140fd4dc0941d6911c 100644 (file)
@@ -48,7 +48,7 @@ class JsControllerTest extends TestCase {
        /** @var IRequest|\PHPUnit_Framework_MockObject_MockObject */
        private $request;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                /** @var Factory|\PHPUnit_Framework_MockObject_MockObject $factory */
index df1b12b970954403b0813dd8da6d8398aa663949..6a8db74b0d3ea3102ff4b8ab0b7f18012e1dc853 100644 (file)
@@ -83,7 +83,7 @@ class LoginControllerTest extends TestCase {
        /** @var IInitialStateService|MockObject */
        private $initialStateService;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->request = $this->createMock(IRequest::class);
                $this->userManager = $this->createMock(\OC\User\Manager::class);
index 60b96a3908118f7ad9cf07f2d35c2971bc191dec..27344102f0aee7cef39a0bee0b8d0fa24a5e15cb 100644 (file)
@@ -84,7 +84,7 @@ class LostControllerTest extends \Test\TestCase {
        /** @var IInitialStateService|\PHPUnit_Framework_MockObject_MockObject */
        private $initialStateService;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->existingUser = $this->createMock(IUser::class);
index 71730a8f8b99c358525ee694b4f9af92140c7579..ce77d1d06847176df8697e07a9403d722252e738 100644 (file)
@@ -45,7 +45,7 @@ class NavigationControllerTest extends TestCase {
        /** @var NavigationController */
        private $controller;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index 241c3b12477b22ab4fbab0c5377ec189f9aa1984..d1e7f2c43504e3d670bd4e0448d74ba0664d8db6 100644 (file)
@@ -48,7 +48,7 @@ class OCSControllerTest extends TestCase {
        /** @var OCSController */
        private $controller;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index 7b66d32f61e051896b11281191424c55be99255c..145fb93f63a2cf255f76e02a2a3a4f014de6ee76 100644 (file)
@@ -49,7 +49,7 @@ class PreviewControllerTest extends \Test\TestCase {
        /** @var PreviewController|\PHPUnit_Framework_MockObject_MockObject */
        private $controller;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->rootFolder = $this->createMock(IRootFolder::class);
index 73b035a408ccee84d55dfa69c79a4ce1a6950f29..40453db572945f3ca5a7101e44a3bbc35fbd96ae 100644 (file)
@@ -61,7 +61,7 @@ class TwoFactorChallengeControllerTest extends TestCase {
        /** @var TwoFactorChallengeController|PHPUnit_Framework_MockObject_MockObject */
        private $controller;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index 7a089d5e57ed9bedb8310491d8d8e048005c4d0b..489433f10b827672a8dc8bf606658fd3237abae9 100644 (file)
@@ -38,7 +38,7 @@ class UserControllerTest extends TestCase {
        /** @var UserController */
        private $controller;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->userManager = $this->createMock(IUserManager::class);
index cc084890e7048d3adf372c651229cf78eb3d53a4..ebbf6509009feb9dfa764e8c95da6569c589046a 100644 (file)
@@ -40,7 +40,7 @@ class WipeControllerTest extends TestCase {
        /** @var WipeController */
        private $controller;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->remoteWipe = $this->createMock(RemoteWipe::class);
index 994599212f9ef2476a5681eb5e19a1f1f0dab36b..65db9733ab26ed65b6358374234b2cb9fe4f7812 100644 (file)
@@ -70,7 +70,7 @@ class TwoFactorMiddlewareTest extends TestCase {
        /** @var Controller */
        private $controller;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->twoFactorManager = $this->getMockBuilder(Manager::class)
index b552a86d2507a67a0b9a8865b05fdd78c11be6f2..a2dd6664c6fe27a6f412db98c2f711c177adfadd 100644 (file)
@@ -72,7 +72,7 @@ class NextcloudTestServerLocalApacheHelper implements NextcloudTestServerHelper
         * @throws \Exception if the Nextcloud test server can not be reset or
         *         started again.
         */
-       public function setUp() {
+       public function setUp(): void {
                // Ensure that previous Apache server is not running (as cleanUp may not
                // have been called).
                $this->stopApacheServer();
index 722f580171af513680e08c65601caa3d598f3340..1e74f5c66d16e97905015ce85d89e0ed67475b2b 100644 (file)
@@ -76,7 +76,7 @@ class NextcloudTestServerLocalBuiltInHelper implements NextcloudTestServerHelper
         * @throws \Exception if the Nextcloud test server can not be reset or
         *         started again.
         */
-       public function setUp() {
+       public function setUp(): void {
                // Ensure that previous PHP server is not running (as cleanUp may not
                // have been called).
                $this->killPhpServer();
index 9d9a0e015838285b19e01baebe2d3cc3eda09290..3204eca8bbb76fd10432ba2265024fb31c50b559 100644 (file)
@@ -51,7 +51,7 @@ class AccountsManagerTest extends TestCase {
        /** @var string accounts table name */
        private $table = 'accounts';
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->eventDispatcher = $this->getMockBuilder('Symfony\Component\EventDispatcher\EventDispatcherInterface')
                        ->disableOriginalConstructor()->getMock();
@@ -59,7 +59,7 @@ class AccountsManagerTest extends TestCase {
                $this->jobList = $this->getMockBuilder(IJobList::class)->getMock();
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                parent::tearDown();
                $query = $this->connection->getQueryBuilder();
                $query->delete($this->table)->execute();
index 0534f2dba6b8d319583f5e3128e71b115288cca7..1cffb1e265e5f272ffa496fd0537fc8175a2e819 100644 (file)
@@ -45,7 +45,7 @@ class HooksTest extends TestCase  {
        /** @var  Hooks | \PHPUnit_Framework_MockObject_MockObject */
        private $hooks;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->logger = $this->createMock(ILogger::class);
index ba6b87ca9aaf2c26504cc473c41c3cca458837b1..fed4bceb6a75db25477c7ff7edc1fb5a7757c23c 100644 (file)
@@ -44,7 +44,7 @@ class ManagerTest extends TestCase {
        /** @var IValidator|\PHPUnit_Framework_MockObject_MockObject */
        protected $validator;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index 66b210c4c1353f77ca244fea2173ce1fc4a4433d..0dc93174a67b47f2ef68e27bc83bddff405010b1 100644 (file)
@@ -97,7 +97,7 @@ class AppManagerTest extends TestCase {
        /** @var IAppManager */
        protected $manager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->userSession = $this->createMock(IUserSession::class);
index 23af1cda9277ac5acafd98c4c4683fde1f2cb3f3..6b03940c9a9cef147c22fb26b16a1c0ba7c73cd9 100644 (file)
@@ -37,7 +37,7 @@ abstract class BundleBase extends TestCase {
        /** @var array */
        protected $bundleAppIds;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->l10n = $this->createMock(IL10N::class);
                $this->l10n->method('t')
index 350f6654e083861f70c9878a3571bc4338897760..27384953d3fa1e8eb9523d724b9478d8dca9a9b5 100644 (file)
@@ -36,7 +36,7 @@ class BundleFetcherTest extends TestCase {
        /** @var BundleFetcher */
        private $bundleFetcher;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->l10n = $this->createMock(IL10N::class);
index 235e2ec84fe8c3d560b1aa7d4354e8384a360771..01a449c8093068a54f684db556e6b226551e63f6 100644 (file)
@@ -24,7 +24,7 @@ namespace Test\App\AppStore\Bundles;
 use OC\App\AppStore\Bundles\CoreBundle;
 
 class CoreBundleTest extends BundleBase {
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->bundle = new CoreBundle($this->l10n);
                $this->bundleIdentifier = 'CoreBundle';
index 589f35db21510a9aeefe2aca012f84a68d3db439..e3da7f1f660240f5c9fe09ca5283497cc7ed47d6 100644 (file)
@@ -24,7 +24,7 @@ namespace Test\App\AppStore\Bundles;
 use OC\App\AppStore\Bundles\EducationBundle;
 
 class EducationBundleTest extends BundleBase {
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->bundle = new EducationBundle($this->l10n);
                $this->bundleIdentifier = 'EducationBundle';
index b3182ff00c84e5f2b9b8e98e26eb0bfecff7645f..717c6151ed4cfed53ea6c4eadb92954eed943038 100644 (file)
@@ -24,7 +24,7 @@ namespace Test\App\AppStore\Bundles;
 use OC\App\AppStore\Bundles\EnterpriseBundle;
 
 class EnterpriseBundleTest extends BundleBase {
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->bundle = new EnterpriseBundle($this->l10n);
                $this->bundleIdentifier = 'EnterpriseBundle';
index ccff5dcbd34ccefc2fc278b4f6bd08785957c78f..547e6e84ec866cda774798581e04222ed22892c1 100644 (file)
@@ -24,7 +24,7 @@ namespace Test\App\AppStore\Bundles;
 use OC\App\AppStore\Bundles\GroupwareBundle;
 
 class GroupwareBundleTest extends BundleBase {
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->bundle = new GroupwareBundle($this->l10n);
                $this->bundleIdentifier = 'GroupwareBundle';
index 3d8bccf1935c08641476e690b5f99f02b9088b96..7f0e0f49302b84dc8aa51cddce2a629cfa9ae0a5 100644 (file)
@@ -24,7 +24,7 @@ namespace Test\App\AppStore\Bundles;
 use OC\App\AppStore\Bundles\SocialSharingBundle;
 
 class SocialSharingBundleTest extends BundleBase {
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->bundle = new SocialSharingBundle($this->l10n);
                $this->bundleIdentifier = 'SocialSharingBundle';
index 214f652742b03b9cf8c218df966c4c19248a5d70..cf19b5aa355805d4a1cf40f2642b6b8406a8efad 100644 (file)
@@ -59,7 +59,7 @@ class AppFetcherTest extends TestCase  {
 EOD;
 
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                /** @var Factory|PHPUnit_Framework_MockObject_MockObject $factory */
index f4b8c320c514b6f0d21fdb4eb0d4d42f1f99fb8c..753a1bf88d392741ea36498ab393ce911265ff3c 100644 (file)
@@ -24,7 +24,7 @@ namespace Test\App\AppStore\Fetcher;
 use OC\App\AppStore\Fetcher\CategoryFetcher;
 
 class CategoryFetcherTest extends FetcherBase {
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->fileName = 'categories.json';
                $this->endpoint = 'https://apps.nextcloud.com/api/v1/categories.json';
index 851773a65066d7c2a001bc7acc751a81eda73bcc..4f614d331012668d1b7b713e89c624a79489e789 100644 (file)
@@ -56,7 +56,7 @@ abstract class FetcherBase extends TestCase {
        /** @var string */
        protected $endpoint;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->appDataFactory = $this->createMock(Factory::class);
                $this->appData = $this->createMock(AppData::class);
index ebfa98ade3918e5ebc1f1ff5598e17fdb0a46afb..ea30f40d8211af9fc8d05cb2b66a51881d86253e 100644 (file)
@@ -29,7 +29,7 @@ class VersionParserTest extends TestCase  {
        /** @var VersionParser */
        private $versionParser;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->versionParser = new VersionParser();
        }
index 3128f902f47275469afcf34354e7b079ab3b05b7..531066a54c6e1b896b91e3ef0b71c9674c53566f 100644 (file)
@@ -29,7 +29,7 @@ class InfoCheckerTest extends TestCase {
        /** @var InfoChecker */
        protected $infoChecker;
 
-       public static function setUpBeforeClass() {
+       public static function setUpBeforeClass(): void {
                \OC::$APPSROOTS[] = [
                        'path' => \OC::$SERVERROOT . '/tests/apps',
                        'url' => '/apps-test',
@@ -37,12 +37,12 @@ class InfoCheckerTest extends TestCase {
                ];
        }
 
-       public static function tearDownAfterClass() {
+       public static function tearDownAfterClass(): void {
                // remove last element
                array_pop(\OC::$APPSROOTS);
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->infoChecker = new InfoChecker();
        }
index 60309fdeae47e60fd308e79ea7449e371ff47b62..af04691f276da4a9a5067671e5be161920b624f1 100644 (file)
@@ -33,7 +33,7 @@ class CompareVersionTest extends TestCase {
        /** @var CompareVersion */
        private $compare;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->compare = new CompareVersion();
index 081f6d767dbdef80ad551c0cdfa393ed284e918c..d6848971a8486b508a7f0c9e2f34c69e47968b23 100644 (file)
@@ -26,7 +26,7 @@ class DependencyAnalyzerTest extends TestCase {
        /** @var DependencyAnalyzer */
        private $analyser;
 
-       public function setUp() {
+       public function setUp(): void {
                $this->platformMock = $this->getMockBuilder(Platform::class)
                        ->disableOriginalConstructor()
                        ->getMock();
index b72a869e02c63e786bf44f481273b05ce7e4c409..8de0f4cfd4f93b583362739f57c74d7dd5797ad7 100644 (file)
@@ -16,7 +16,7 @@ class InfoParserTest extends TestCase {
        /** @var OC\Cache\CappedMemoryCache */
        private static $cache;
 
-       public static function setUpBeforeClass() {
+       public static function setUpBeforeClass(): void {
                self::$cache = new OC\Cache\CappedMemoryCache();
        }
 
index 9456fe4c2326a8c04aa8cf361388b8880c47cfa5..87f8142d4b94b318851ae78d96e9728fae2b89de 100644 (file)
@@ -26,7 +26,7 @@ class AppConfigTest extends TestCase {
 
        protected $originalConfig;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->connection = \OC::$server->getDatabaseConnection();
@@ -111,7 +111,7 @@ class AppConfigTest extends TestCase {
                ])->execute();
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                $sql = $this->connection->getQueryBuilder();
                $sql->delete('appconfig');
                $sql->execute();
index cd3e7c47ad6c2a7e0e1c7e3973d3d59eb3dcdcb1..ccc694942a1f742699d9d07eb65821840d0cb317 100644 (file)
@@ -56,7 +56,7 @@ class AppTest extends \Test\TestCase {
        private $controllerMethod;
        private $appPath;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->container = new \OC\AppFramework\DependencyInjection\DIContainer('test', array());
@@ -121,7 +121,7 @@ class AppTest extends \Test\TestCase {
        }
 
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                rrmdir($this->appPath);
                parent::tearDown();
        }
index 30da40d36b49d41934f6a48a6ad60464dce99dbe..8eb76d3cb27b6c985d737444dc9176c801138319 100644 (file)
@@ -50,7 +50,7 @@ class AuthPublicShareControllerTest extends \Test\TestCase {
        private $controller;
 
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index 7831b44b632c32c336980b97e1483efe3655a204..d239cacf633d9e5378fa42ccb2dda856b208a22e 100644 (file)
@@ -62,7 +62,7 @@ class ControllerTest extends \Test\TestCase {
        private $controller;
        private $app;
 
-       protected function setUp(){
+       protected function setUp(): void {
                parent::setUp();
 
                $request = new Request(
index f20f996d5a3746416626c061bd1d5999feea39da..318647ca8448fad2ac6e865ba5e8e931ec366fc8 100644 (file)
@@ -47,7 +47,7 @@ class PublicShareControllerTest extends \Test\TestCase {
        private $controller;
 
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index a49440949e3afbbd70c619a5b64f91db5f5f5840..3eb9f6eef51d16c71dca73391e6fb84edb805c5d 100644 (file)
@@ -66,7 +66,7 @@ class EntityTest extends \Test\TestCase {
 
        private $entity;
 
-       protected function setUp(){
+       protected function setUp(): void {
                parent::setUp();
                $this->entity = new TestEntity();
        }
index 8ca80fe11ca6f94c3fcd55e701b38096f89575aa..a69980fbb26e2660828d886fa7b42366e5a879e3 100644 (file)
@@ -60,7 +60,7 @@ class MapperTest extends MapperTestUtility {
         */
        private $mapper;
 
-       protected function setUp(){
+       protected function setUp(): void {
                parent::setUp();
                $this->mapper = new ExampleMapper($this->db);
        }
index 71c21a0663220c4a080c5b8797fe322ea89b507d..83156a3932bc8dcd7e5d5c2acfd62852fd32c757 100644 (file)
@@ -40,7 +40,7 @@ abstract class MapperTestUtility extends \Test\TestCase {
         * Run this function before the actual test to either set or initialize the
         * db. After this the db can be accessed by using $this->db
         */
-       protected function setUp(){
+       protected function setUp(): void {
                parent::setUp();
 
                $this->db = $this->getMockBuilder(
index 279c95afaeb89d1592797b381bc48fd540c5c1ab..da4102396de0be6dd36e33397efd8228b6079c89 100644 (file)
@@ -105,7 +105,7 @@ class QBMapperTest extends \Test\TestCase {
        /**
         * @throws \ReflectionException
         */
-       protected function setUp() {
+       protected function setUp(): void {
 
                $this->db = $this->getMockBuilder(IDBConnection::class)
                        ->disableOriginalConstructor()
index 03c8265f2c97ac22bc294d4a4bbb9a2efd04116d..95d368a448ec913f2de735c2835ad0655c2d4a62 100644 (file)
@@ -41,7 +41,7 @@ class DIContainerTest extends \Test\TestCase {
        /** @var DIContainer|\PHPUnit_Framework_MockObject_MockObject */
        private $container;
 
-       protected function setUp(){
+       protected function setUp(): void {
                parent::setUp();
                $this->container = $this->getMockBuilder(DIContainer::class)
                        ->setMethods(['isAdminUser'])
index d3d3f73e872d4bcbe9b7503d742a6340a3eb3163..a0783474df30285f7094d192905f51742623b79f 100644 (file)
@@ -56,7 +56,7 @@ class DIIntergrationTests extends TestCase {
        /** @var ServerContainer */
        private $server;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->server = new ServerContainer();
index b6163e90386ccef694054677f75916bc26879e84..1f687b1f7ccb6e0d325cc6f42090842e6dd19774 100644 (file)
@@ -21,7 +21,7 @@ class ContentSecurityPolicyTest extends \Test\TestCase {
        /** @var ContentSecurityPolicy */
        private $contentSecurityPolicy;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->contentSecurityPolicy = new ContentSecurityPolicy();
        }
index 6f81e0d56b46713ac7ccff716e3cb74709754f58..b629c6d385ea98ab97647cd1b2b6186b93e6dfaf 100644 (file)
@@ -34,7 +34,7 @@ class DataResponseTest extends \Test\TestCase {
         */
        private $response;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->response = new DataResponse();
        }
index 404c94abdbddc72de4a236e4d9b2b7a2da94213d..1c4dc067b5dfeb329dc68a5963eee7be4b90ba46 100644 (file)
@@ -87,7 +87,7 @@ class DispatcherTest extends \Test\TestCase {
        private $http;
        private $reflector;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->controllerMethod = 'test';
 
index 97c7ab75ed9c21a3ceadcf66ec1a2635318dd66c..5f816eaeb761a265aee006a8d157e5fb7bbde0fd 100644 (file)
@@ -38,7 +38,7 @@ class DownloadResponseTest extends \Test\TestCase {
         */
        protected $response;
 
-       protected function setUp(){
+       protected function setUp(): void {
                parent::setUp();
                $this->response = new ChildDownloadResponse('file', 'content');
        }
index d9bdfccf60bdc30dd8b3bff142f4dfb6006241ce..86de705a80cee4aeb07200e055b3c38cda5d8f05 100644 (file)
@@ -21,7 +21,7 @@ class EmptyContentSecurityPolicyTest extends \Test\TestCase {
        /** @var EmptyContentSecurityPolicy */
        private $contentSecurityPolicy;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->contentSecurityPolicy = new EmptyContentSecurityPolicy();
        }
index 9150503c632448eefd971f7285f087172fc6ccaf..0321d700cd78346f7dc4049b754d55fd92ed1f9b 100644 (file)
@@ -31,7 +31,7 @@ class EmptyFeaturePolicyTest extends \Test\TestCase {
        /** @var EmptyFeaturePolicy */
        private $policy;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->policy = new EmptyFeaturePolicy();
        }
index 7c2cc3fa6d533dfd36abcad1d6b12764812a07f1..45d7ff0c558383c6145180c87acee1526b326051 100644 (file)
@@ -31,7 +31,7 @@ class FeaturePolicyTest extends \Test\TestCase {
        /** @var EmptyFeaturePolicy */
        private $policy;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->policy = new FeaturePolicy();
        }
index 2c91289a5c99924ad8a8aefa75d79a677ff0d289..d7c8b384bf5dc2aa4f05ecd5c4f4c0f33f8736b4 100644 (file)
@@ -34,7 +34,7 @@ class FileDisplayResponseTest extends \Test\TestCase {
        /** @var FileDisplayResponse */
        private $response;
 
-       public function setup() {
+       public function setUp(): void {
                $this->file = $this->getMockBuilder('OCP\Files\File')
                        ->getMock();
 
index 0a13e1e11e5e123367310a8b253c8f69bf682ce2..79c03ce1ab0637087a8f10e551a0ad9edebe5df4 100644 (file)
@@ -34,7 +34,7 @@ class HttpTest extends \Test\TestCase {
         */
        private $http;
 
-       protected function setUp(){
+       protected function setUp(): void {
                parent::setUp();
 
                $this->server = array();
index a74bd67d1f07695749c59e3320b323fa60b9529b..4981313c32af902e96f00246a3316f90d90c1ae8 100644 (file)
@@ -36,7 +36,7 @@ class JSONResponseTest extends \Test\TestCase {
         */
        private $json;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->json = new JSONResponse();
        }
index 218f748a88b361d369edd4c858afc8a962821921..fc24f323c6af0137f578d8c29460e3f0ab6c4a1e 100644 (file)
@@ -33,7 +33,7 @@ class RedirectResponseTest extends \Test\TestCase {
         */
        protected $response;
 
-       protected function setUp(){
+       protected function setUp(): void {
                parent::setUp();
                $this->response = new RedirectResponse('/url');
        }
index 2ad660405f3c12f657386d31aef4893176f08241..7ca09cf33da678dfeb3603322056681ecfb41767 100644 (file)
@@ -31,7 +31,7 @@ class RequestTest extends \Test\TestCase {
        /** @var CsrfTokenManager */
        protected $csrfTokenManager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                if (in_array('fakeinput', stream_get_wrappers())) {
@@ -45,7 +45,7 @@ class RequestTest extends \Test\TestCase {
                        ->disableOriginalConstructor()->getMock();
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                stream_wrapper_unregister('fakeinput');
                parent::tearDown();
        }
index 64b9566f8e6fc0fb6220d9aadd9c463c8f6651a7..3d76d24496dab0ec93f313341a38aefe5de7b93a 100644 (file)
@@ -35,7 +35,7 @@ class ResponseTest extends \Test\TestCase {
         */
        private $childResponse;
 
-       protected function setUp(){
+       protected function setUp(): void {
                parent::setUp();
                $this->childResponse = new Response();
        }
index ef9a37aa81b8eaa85623da572a5e7be6724909a1..ef7132013b6ff7b9581a6c7769019cfb1c219e2d 100644 (file)
@@ -33,7 +33,7 @@ class StreamResponseTest extends \Test\TestCase {
        /** @var IOutput */
        private $output;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->output = $this->getMockBuilder('OCP\\AppFramework\\Http\\IOutput')
                        ->disableOriginalConstructor()
index b558622225754847739a7d629c4ab62d91141211..6672b4d0c1ec3809ed459f2fa14185973ba02b79 100644 (file)
@@ -33,7 +33,7 @@ class TemplateResponseTest extends \Test\TestCase {
         */
        private $tpl;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->tpl = new TemplateResponse('app', 'home');
index 7f817e03c1e295037677765f6ff5c3935ad14646..3174971032bf1d7538f48831c7e5bbc6c6b9db68 100644 (file)
@@ -47,7 +47,7 @@ class AdditionalScriptsMiddlewareTest extends \Test\TestCase {
        /** @var AdditionalScriptsMiddleware */
        private $middleWare;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->dispatcher = $this->createMock(EventDispatcherInterface::class);
index e38aa4525e3828410168f660f4bd5e4310d581fa..965637cb4c492e3e072cf3a1dfe223d40e8136d0 100644 (file)
@@ -113,7 +113,7 @@ class MiddlewareDispatcherTest extends \Test\TestCase {
         */
        private $dispatcher;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->dispatcher = new MiddlewareDispatcher();
index 8f9c60b65ff36aaa4820d9faa80ca6d0dd2906ea..4ac6fa647f77b4942ebc9d4f6ab2af9d342da31c 100644 (file)
@@ -43,7 +43,7 @@ class MiddlewareTest extends \Test\TestCase {
        /** @var Response */
        private $response;
 
-       protected function setUp(){
+       protected function setUp(): void {
                parent::setUp();
 
                $this->middleware = new ChildMiddleware();
index cca3b4aecca2e4f83af72eb28d0b07a8b3dd1a08..e001e48acd27667bb9d038b80402193be166a6e6 100644 (file)
@@ -42,7 +42,7 @@ class OCSMiddlewareTest extends \Test\TestCase {
         */
        private $request;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->request = $this->getMockBuilder(IRequest::class)
index 4ad90b6e874fbb9820aefa09dd9cb3c413d44fb2..82f354d127d3616717c794c1eb5a83901d4fd3fb 100644 (file)
@@ -49,7 +49,7 @@ class PublicShareMiddlewareTest extends \Test\TestCase {
        private $middleware;
 
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index ae2345764ff566e87ddb930afd233574ee56b90d..6d464a66177320156e1620e07eb6287f92e3a08c 100644 (file)
@@ -40,7 +40,7 @@ class BruteForceMiddlewareTest extends TestCase {
        /** @var BruteForceMiddleware */
        private $bruteForceMiddleware;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->reflector = $this->createMock(ControllerMethodReflector::class);
index 0fab880307326cc36551f3f186416b4ce02a2a97..e022770a8cf5e22049f0aeb712de18e93cff0121 100644 (file)
@@ -34,7 +34,7 @@ class CORSMiddlewareTest extends \Test\TestCase {
        /** @var Controller */
        private $controller;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->reflector = new ControllerMethodReflector();
                $this->session = $this->createMock(Session::class);
index 9f2b4e399fba1f99dc730340e080a845dff0a26f..6d089e3880d6b85e67f3ab28963e3dd0427a36d3 100644 (file)
@@ -48,7 +48,7 @@ class CSPMiddlewareTest extends \Test\TestCase {
        /** @var ContentSecurityPolicyNonceManager|MockObject */
        private $cspNonceManager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->controller = $this->createMock(Controller::class);
index d2ab8d05919a246237bc99dd3c3eac667790a8f1..e136d7836162f27767380d10d1f6cbe281d501ba 100644 (file)
@@ -44,7 +44,7 @@ class FeaturePolicyMiddlewareTest extends \Test\TestCase {
        /** @var FeaturePolicyManager|MockObject */
        private $manager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->controller = $this->createMock(Controller::class);
index c981e840d701592c4b17929f98767f395d6db7f5..7a64b6cbcad21548952dacc86a5757468e29ef30 100644 (file)
@@ -49,7 +49,7 @@ class PasswordConfirmationMiddlewareTest extends TestCase {
        /** @var ITimeFactory|\PHPUnit_Framework_MockObject_MockObject */
        private $timeFactory;
 
-       protected function setUp() {
+       protected function setUp(): void {
                $this->reflector = new ControllerMethodReflector();
                $this->session = $this->createMock(ISession::class);
                $this->userSession = $this->createMock(IUserSession::class);
index 1317a07447db107d52686731a7913921523cb92e..89e396fcee306726d1f0ad75cf23592a044e8e89 100644 (file)
@@ -45,7 +45,7 @@ class RateLimitingMiddlewareTest extends TestCase {
        /** @var RateLimitingMiddleware */
        private $rateLimitingMiddleware;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index c92c131780ef4558722d9d6221b6bb312ca1e4a9..c30d2760886cae62b94f1a8d0d4ff59eca9877d3 100644 (file)
@@ -43,7 +43,7 @@ class SameSiteCookieMiddlewareTest extends TestCase {
        /** @var ControllerMethodReflector|\PHPUnit_Framework_MockObject_MockObject */
        private $reflector;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(Request::class);
index 00bb1a0bb3c74a0dae9512ea4437f04f8d0623f3..26d09af9003d10b26e5ca4557854aa21a93ef1bc 100644 (file)
@@ -77,7 +77,7 @@ class SecurityMiddlewareTest extends \Test\TestCase {
        /** @var IL10N|\PHPUnit_Framework_MockObject_MockObject */
        private $l10n;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->controller = $this->createMock(Controller::class);
index 2cd61c73c71a724cfa1670960433c82fc207be7f..db2a9d5b62507a962facfd2c7c88503384c980f6 100644 (file)
@@ -26,7 +26,7 @@ class SessionMiddlewareTest extends \Test\TestCase {
        /** @var Controller */
        private $controller;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->reflector = new ControllerMethodReflector();
index b2f6c6ad8d0673460b098cdd3bd5734b030416f1..cfd55d8d6d899ad6cf94b1414760cea4f031656b 100644 (file)
@@ -61,7 +61,7 @@ class SimpleContainerTest extends \Test\TestCase {
 
     private $container;
 
-    public function setUp() {
+    public function setUp(): void {
         $this->container = new SimpleContainer();
     }
 
index 87a7b03027380e786a8d64680f42d1f169130514..47d1d53a74c99dd109ed1d3fdfb2af2219fba481 100644 (file)
@@ -47,7 +47,7 @@ class RemoteWipeActivityListenerTests extends TestCase {
        /** @var IEventListener */
        private $listener;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->activityManager = $this->createMock(IActivityManager::class);
index ea7740057ba2f764344cf822a5aa01740f0422d4..3d47b8d4a03b0dbda8549dd793467d1083b92d20 100644 (file)
@@ -60,7 +60,7 @@ class RemoteWipeEmailListenerTest extends TestCase {
        /** @var IEventListener */
        private $listener;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->mailer = $this->createMock(IMailer::class);
index e3e526e401b98e6ba29554b1ec6888e94f911a8c..79d362410ae9113d1f044d33eace915530e8491d 100644 (file)
@@ -47,7 +47,7 @@ class RemoteWipeNotificationListenerTests extends TestCase {
        /** @var IEventListener */
        private $listener;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->notificationManager = $this->createMock(INotificationManager::class);
index ec3b324b2cea3acc049e95a9f77b4a5b89a8c5da..f09b649ffcb059a6a2fbac961eefa0c78034259a 100644 (file)
@@ -56,7 +56,7 @@ abstract class ALoginCommandTest extends TestCase {
        /** @var ALoginCommand */
        protected $cmd;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index 05078cde9300abb33334961e53c541e049975ef0..0d3b7acfa2d31eac62954695990e11825ca08aaa 100644 (file)
@@ -36,7 +36,7 @@ class ClearLostPasswordTokensCommandTest extends ALoginCommandTest {
        /** @var IConfig|MockObject */
        private $config;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(IConfig::class);
index bf312e7f4e3d3f80d368cc5a004f28b68bf04260..e611611dd7cce8586ae1c50e8248a0c57591cafd 100644 (file)
@@ -34,7 +34,7 @@ class CompleteLoginCommandTest extends ALoginCommandTest {
        /** @var Session|MockObject */
        private $session;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->session = $this->createMock(Session::class);
index 11d2ea36b27efd6d475a59fbdf4efee41afd759b..82ae90015a4cc0812d25d3eb5ae0c84d40e5c117 100644 (file)
@@ -39,7 +39,7 @@ class CreateSessionTokenCommandTest extends ALoginCommandTest {
        /** @var Session|MockObject */
        private $userSession;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(IConfig::class);
index c72048d88773d3bedfb2d7caaa4a1883f2f50aa4..5217a4d00805c80e8197081262eb7940b66f1501 100644 (file)
@@ -35,7 +35,7 @@ class EmailLoginCommandTest extends ALoginCommandTest {
        /** @var IUserManager|MockObject */
        private $userManager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->userManager = $this->createMock(IUserManager::class);
index 33926aeea0e14d57d7367f6dead1317ca40c25fd..9cb3734922ed780c8eb7ee24d947b62cbf608234 100644 (file)
@@ -34,7 +34,7 @@ class FinishRememberedLoginCommandTest extends ALoginCommandTest {
        /** @var Session|MockObject */
        private $userSession;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->userSession = $this->createMock(Session::class);
index 169383073387572163d72b09ca4d98527e6edd03..3b18c97a6129b8e3762d151beac2375fcac964fd 100644 (file)
@@ -35,7 +35,7 @@ class LoggedInCheckCommandTest extends ALoginCommandTest {
        /** @var ILogger|MockObject */
        private $logger;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->logger = $this->createMock(ILogger::class);
index 3329f3ad82f335057f46743474f425a5ba243b35..c067899ffc274704cfaa5f47794714652966086b 100644 (file)
@@ -35,7 +35,7 @@ class PreLoginHookCommandTest extends ALoginCommandTest {
        /** @var IUserManager|MockObject */
        private $userManager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->userManager = $this->createMock(Manager::class);
index a2ce656a14b01e262be4e0bdce8ec3b118ea69a4..14da73b93fa2adf2c76030a9c70a0d10a870c24b 100644 (file)
@@ -38,7 +38,7 @@ class SetUserTimezoneCommandTest extends ALoginCommandTest {
        /** @var ISession|MockObject */
        private $session;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(IConfig::class);
index 5f91d8125251469c15ef16623027e8b20071e35e..3e8ad142cc16200517c0ee68a9f6d71997a60033 100644 (file)
@@ -45,7 +45,7 @@ class TwoFactorCommandTest extends ALoginCommandTest {
        /** @var IURLGenerator|MockObject */
        private $urlGenerator;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->twoFactorManager = $this->createMock(Manager::class);
index 0a7889c227c843015f138e5aab4eb736b71f282a..c4dd3f10381d189010710a54f43a0d585aa51530 100644 (file)
@@ -35,7 +35,7 @@ class UidLoginCommandTest extends ALoginCommandTest {
        /** @var Manager|MockObject */
        private $userManager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->userManager = $this->createMock(Manager::class);
index 5f5bd3032a84d4a7d65d2f7ec1339fce7ed7e6f9..b66ecdde3c487a173dfecb4240b1e913fd6cc54d 100644 (file)
@@ -34,7 +34,7 @@ class UpdateLastPasswordConfirmCommandTest extends ALoginCommandTest {
        /** @var ISession|MockObject */
        private $session;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->session = $this->createMock(ISession::class);
index 35d8ac63de68bc570b8234b4b896d2ae20795879..2a2f23162bf963a6131aacf6b237af963de839cf 100644 (file)
@@ -39,7 +39,7 @@ class UserDisabledCheckCommandTest extends ALoginCommandTest {
        /** @var ILogger|MockObject */
        private $logger;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->userManager = $this->createMock(IUserManager::class);
index 308ccafb151e070e396b8bf071d30b4243094b03..263db1bbb5b0a73e0ce891d00f1b05b765f0b95e 100644 (file)
@@ -41,7 +41,7 @@ class CredentialsTest extends TestCase {
        /** @var Credentials */
        private $credentials;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->uid = 'user123';
index 4588eae35f034f098a59cef6321e81fcc871624f..b75e149888911ac5b80008615829de74cf1e34da 100644 (file)
@@ -51,7 +51,7 @@ class StoreTest extends TestCase {
        /** @var Store */
        private $store;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->session = $this->createMock(ISession::class);
index b8074d75b30ef0bbfe7f42150e7cea3f48348542..e4bc13fe5fbaa53c73c19b45bec77d468af27c99 100644 (file)
@@ -33,7 +33,7 @@ class DefaultTokenCleanupJobTest extends TestCase {
        private $job;
        private $tokenProvider;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->tokenProvider = $this->getMockBuilder(Manager::class)
index a40db4461d2cc36184062b225bad975112989918..fb20558c95a47a7b654b6b283be151cd3c189e24 100644 (file)
@@ -46,7 +46,7 @@ class DefaultTokenMapperTest extends TestCase {
        private $dbConnection;
        private $time;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->dbConnection = OC::$server->getDatabaseConnection();
index 57144d0f00d1772eb6fbd6718bcccc4ef5afe6ad..b90a9931937d78ddae0824aa9226376a2af037dd 100644 (file)
@@ -53,7 +53,7 @@ class DefaultTokenProviderTest extends TestCase {
        /** @var int */
        private $time;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->mapper = $this->createMock(DefaultTokenMapper::class);
index 1f3fda1b15d50a8198c6597e9439e4344fd046a6..6f64424364e3a5d808a3e80307c33f2c467ec640 100644 (file)
@@ -46,7 +46,7 @@ class ManagerTest extends TestCase {
        /** @var Manager */
        private $manager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->publicKeyTokenProvider = $this->createMock(PublicKeyTokenProvider::class);
index b8c399b81f89c8794066c594ab21fa0ea62b9999..b58001ee7bba3b2c26690f17fa0563da1a480d16 100644 (file)
@@ -47,7 +47,7 @@ class PublicKeyTokenMapperTest extends TestCase {
        /** @var int */
        private $time;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->dbConnection = OC::$server->getDatabaseConnection();
index 1b468839cb76bf5fa76f72644955595db7ff0148..aecbd969ee1b81b2be6fefeb293e2b2b47487e26 100644 (file)
@@ -54,7 +54,7 @@ class PublicKeyTokenProviderTest extends TestCase {
        /** @var int */
        private $time;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->mapper = $this->createMock(PublicKeyTokenMapper::class);
index 5773bb596a5237e74f50a02135a5f3ff0a9eabc6..2ca49d3615912754bfdcd11b229774a0e40c00c4 100644 (file)
@@ -51,7 +51,7 @@ class RemoteWipeTest extends TestCase {
        /** @var RemoteWipe */
        private $remoteWipe;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->tokenProvider = $this->createMock(IProvider::class);
index 2402fcf9f7bc38750d3d8628a471bf13af75e17a..67eb27cfdeef2ddd0730a906af72df815d4d2fc3 100644 (file)
@@ -41,7 +41,7 @@ class ProviderUserAssignmentDaoTest extends TestCase {
        /** @var ProviderUserAssignmentDao */
        private $dao;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->dbConn = OC::$server->getDatabaseConnection();
index e836e8d316bb9c8efb87135c055b9c2f0c586252..63d0e993f3b570a963f7c65c9d22efb3295598c1 100644 (file)
@@ -87,7 +87,7 @@ class ManagerTest extends TestCase {
        /** @var EventDispatcherInterface|MockObject */
        private $eventDispatcher;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->user = $this->createMock(IUser::class);
index 61ffb404dd91dcfe224bb3f9ce779cf6bf834423..92d072608f25e202225d1ac118ee5d9ebf284cb6 100644 (file)
@@ -45,7 +45,7 @@ class MandatoryTwoFactorTest extends TestCase {
        /** @var MandatoryTwoFactor */
        private $mandatoryTwoFactor;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(IConfig::class);
index 55a1e17392898c0ca85a8bae4aa4fec6bb507c9f..634ab97a8bf27b35b2537473ea5a18830886ab59 100644 (file)
@@ -43,7 +43,7 @@ class ProviderLoaderTest extends TestCase {
        /** @var ProviderLoader */
        private $loader;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->appManager = $this->createMock(IAppManager::class);
index 736dfdb913b974a12c95e930a888f1dc6f1dc6d9..f776e244c27de5e926938ea366b34d4ddc3fbadd 100644 (file)
@@ -47,7 +47,7 @@ class ProviderManagerTest extends TestCase {
        /** @var ProviderManager */
        private $providerManager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->providerLoader = $this->createMock(ProviderLoader::class);
index ad29377e5592f81dcd77d3b2a8ed52ddc58d7afc..2f59d14992a7741226507db50ed3c2fa431b1165 100644 (file)
@@ -45,7 +45,7 @@ class RegistryTest extends TestCase {
        /** @var Registry */
        private $registry;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->dao = $this->createMock(ProviderUserAssignmentDao::class);
index 38ba29bc08578629ee78e517d9875549f54dec09..b3ca21a90d4ce4d31b49e298d6e588f439396549 100644 (file)
@@ -14,7 +14,7 @@ class AutoLoaderTest extends TestCase {
         */
        private $loader;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->loader = new \OC\AutoLoader([]);
        }
index ae3ee89cec2532ecad0ee37855b7458faf80d1b2..812802f8c5f73d6e8aab4ac13fd7ac907a70842a 100644 (file)
@@ -51,7 +51,7 @@ class AvatarManagerTest extends \Test\TestCase {
        /** @var AvatarManager | \PHPUnit_Framework_MockObject_MockObject */
        private $avatarManager;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->userManager = $this->createMock(Manager::class);
index 2ce9266cf4d9a084378f4272b028fb8f489f0378..19be534e0efc537bc04bb9f3b43480c8557ad2a2 100644 (file)
@@ -31,7 +31,7 @@ class UserAvatarTest extends \Test\TestCase {
        /** @var \OCP\IConfig|\PHPUnit_Framework_MockObject_MockObject */
        private $config;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->folder = $this->createMock(SimpleFolder::class);
index 78299e81546f5b993a693b714ef17c464c9ec3a3..7e099b23d063b6fc1b5f2b4c7ff6dbebe3ecbc13 100644 (file)
@@ -33,7 +33,7 @@ class JobListTest extends TestCase {
        /** @var \OCP\AppFramework\Utility\ITimeFactory|\PHPUnit_Framework_MockObject_MockObject */
        protected $timeFactory;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->connection = \OC::$server->getDatabaseConnection();
index ecd8bde8626ea801d9977cfae56edd10a99327c3..6e5474e597ce58264f0f5ecc67cc0118791a75a9 100644 (file)
@@ -13,7 +13,7 @@ use OCP\ILogger;
 class JobTest extends \Test\TestCase {
        private $run = false;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->run = false;
        }
index 73b245f93a58660bf7b7d34c4df7cc018783e9d1..9378816ce61d261e862aed152a1c54e2a8b911b3 100644 (file)
@@ -35,7 +35,7 @@ class QueuedJobTest extends \Test\TestCase {
         */
        private $jobList;
 
-       protected function setup() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->jobList = new DummyJobList();
index e684ad8c1e61922d2531b151691eee6e1b853c83..12f1c43adde32a9f9f26123caebe6fdabeec4f61 100644 (file)
@@ -44,7 +44,7 @@ class TimedJobTest extends \Test\TestCase {
        /** @var ITimeFactory */
        private $time;
 
-       protected function setup() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->jobList = new DummyJobList();
index 243a1ad74f11fd76e3c7fc3da7e473ae7f18a11b..3b8e5bd7fb00fa742ad7f3342a4c148c69571358 100644 (file)
@@ -28,7 +28,7 @@ namespace Test\Cache;
  * @package Test\Cache
  */
 class CappedMemoryCacheTest extends TestCache {
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->instance = new \OC\Cache\CappedMemoryCache();
        }
index a90fc6678e97b10721759cc55adc4bd533a4725d..26306458d8369fe5f798288de53989111c8fc2a8 100644 (file)
@@ -52,7 +52,7 @@ class FileCacheTest extends TestCache {
                //$this->skipUnless(OC_User::isLoggedIn());
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                //clear all proxies and hooks so we can do clean testing
@@ -87,7 +87,7 @@ class FileCacheTest extends TestCache {
                $this->instance->set('hack', 'hack');
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if ($this->instance) {
                        $this->instance->remove('hack', 'hack');
                }
index 2642c014a78c89b2b8734e7b0f15a9b70ea55cc4..62341a5698bf0dd6bbdc594fb49f57848cbf3da9 100644 (file)
@@ -14,7 +14,7 @@ abstract class TestCache extends \Test\TestCase {
         */
        protected $instance;
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if($this->instance) {
                        $this->instance->clear();
                }
index dca9368558fd2f0ebe6a4c8d4ab5516b21ebddc9..fa459203dace2a503508bab8d3aab26b47e0a876 100644 (file)
@@ -32,7 +32,7 @@ class ManagerTest extends TestCase {
        /** @var Manager */
        private $manager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->manager = new Manager();
index 3e065c699084594c104e6e6d4081e22b557ea5de..71679a86a8cfdc742b76c145c8bc1d3ee9aff167 100644 (file)
@@ -36,7 +36,7 @@ class ManagerTest extends TestCase {
        /** @var IServerContainer */
        private $server;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->server = $this->createMock(IServerContainer::class);
index 9a85132aa3a05ff988ff322f5d7e5d914b6bdbbf..56f05544e2928e37b8997e292dd6e0664f3d7405 100644 (file)
@@ -36,7 +36,7 @@ class ManagerTest extends TestCase {
        /** @var IServerContainer */
        private $server;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->server = $this->createMock(IServerContainer::class);
index c967b77130d52e4c9dfe9c3ad24fe58838c9c2fc..f4222a83ef82059f6b57fd965ef228ee13078035 100644 (file)
@@ -35,7 +35,7 @@ class CapabilitiesManagerTest extends TestCase {
        /** @var ILogger */
        private $logger;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->logger = $this->getMockBuilder(ILogger::class)->getMock();
                $this->manager = new CapabilitiesManager($this->logger);
index 36d98ee302fbe0ad3832a81bfea8e597bf85574d..d5a84e9b1b568e0bf48ea065745fd10d586b4153 100644 (file)
@@ -60,7 +60,7 @@ class GroupPluginTest extends TestCase {
        /** @var  IUser|\PHPUnit_Framework_MockObject_MockObject */
        protected $user;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(IConfig::class);
index e4be6a73ee1276a246f28d026ea53412f0e3e6fc..40fee52f234612478932e60d939914fbc63896a4 100644 (file)
@@ -55,7 +55,7 @@ class LookupPluginTest extends TestCase {
        /** @var ILogger|\PHPUnit_Framework_MockObject_MockObject */
        protected $logger;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->userSession = $this->createMock(IUserSession::class);
index a9d0244d38cd5f390715e6e615094fc909f5b7ef..af5cb7d3036f8186c7d9d05e36ac4798aa42e91e 100644 (file)
@@ -59,7 +59,7 @@ class MailPluginTest extends TestCase {
        /** @var  IUserSession|\PHPUnit_Framework_MockObject_MockObject */
        protected $userSession;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(IConfig::class);
index 560e72a984d880ca32557307232d6453f615b4f2..03140ddc6eb176e042d662556d592549658e7799 100644 (file)
@@ -57,7 +57,7 @@ class RemotePluginTest extends TestCase {
        /** @var  SearchResult */
        protected $searchResult;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->userManager = $this->createMock(IUserManager::class);
index 90ea90237a12db6d8a8556d97e92a82eb9a3fed7..717693e75922e464a347d6643449fbf3956d257f 100644 (file)
@@ -39,7 +39,7 @@ class SearchResultTest extends TestCase {
        /** @var  ISearch */
        protected $search;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->container = $this->createMock(IContainer::class);
index 80e6c7f0bebeb16ffab70016ca3d41d65ca38bd6..9116352ef196eaccfe4cf278b6a8d635ab259001 100644 (file)
@@ -39,7 +39,7 @@ class SearchTest extends TestCase {
        /** @var  ISearch */
        protected $search;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->container = $this->createMock(IContainer::class);
index 7513f9da5b67b6d2c0d22bcefc8072cd256356c2..b9f10a54fa03b31b0d57ea118fd2e86aed366400 100644 (file)
@@ -62,7 +62,7 @@ class UserPluginTest extends TestCase {
        /** @var  IUser|\PHPUnit_Framework_MockObject_MockObject */
        protected $user;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(IConfig::class);
index 8f07738bec62995bec2e079f5b5ba871ce9fcdc4..59a80320f414acdbdb2da1bd57af1336a63fbb20 100644 (file)
@@ -89,7 +89,7 @@ abstract class AsyncBusTest extends TestCase {
         */
        abstract protected function createBus();
 
-       public function setUp() {
+       public function setUp(): void {
                self::$lastCommand = '';
        }
 
index 9bf53ba92d210de8d976105b00dc8ae3d81124f3..a28ed0fbed49a9f593c48d7d2d6db1d6867d67c7 100644 (file)
@@ -31,7 +31,7 @@ class CronBusTest extends AsyncBusTest {
        private $jobList;
 
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->jobList = new DummyJobList();
index 2615c6afc1e495466680272913426b4836c04b62..b30d465fcaa0712ca9b0111525a792b9da5228b3 100644 (file)
@@ -39,7 +39,7 @@ class SignAppTest extends TestCase {
        /** @var IURLGenerator|\PHPUnit_Framework_MockObject_MockObject */
        private $urlGenerator;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->checker = $this->createMock(Checker::class);
                $this->fileAccessHelper = $this->createMock(FileAccessHelper::class);
index e601b4a1a90ea00f48dc3f26f10cf8885e7b5846..c496b864008a5f1a57b8e7280d9666e27a73927c 100644 (file)
@@ -36,7 +36,7 @@ class SignCoreTest extends TestCase {
        /** @var SignCore */
        private $signCore;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->checker = $this->createMock(Checker::class);
                $this->fileAccessHelper = $this->createMock(FileAccessHelper::class);
index 28002ff42ccb79c2a942647fc735747895b4309c..8b7bf50f95c74f3a344bed462521e4fdd97979a5 100644 (file)
@@ -21,7 +21,7 @@ class ManagerTest extends TestCase {
        /** @var IDBConnection */
        private $connection;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->connection = \OC::$server->getDatabaseConnection();
index 2a4c962034079b18e546b1bea78ce66c0d5400fe..109f7471e9611c36b73bf2b93248b9dcfc69c1c4 100644 (file)
@@ -20,7 +20,7 @@ class ConfigTest extends TestCase {
        /** @var string */
        private $randomTmpDir;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->randomTmpDir = \OC::$server->getTempManager()->getTemporaryFolder();
@@ -29,7 +29,7 @@ class ConfigTest extends TestCase {
                $this->config = new \OC\Config($this->randomTmpDir, 'testconfig.php');
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                unlink($this->configFile);
                parent::tearDown();
        }
index d1273c2b9adc3796512f9e384579c8b8137cb0e9..54106bbb6422036f8011641f96b630994e5adea1 100644 (file)
@@ -33,7 +33,7 @@ class ActionFactoryTest extends TestCase {
        /** @var ActionFactory */
        private $actionFactory;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->actionFactory = new ActionFactory();
index fb5e815447c7738287f9ef89e56f9ba3a833135e..6460ef20d0c53fdd79e608b3e452c8b9a87487f4 100644 (file)
@@ -51,7 +51,7 @@ class ActionProviderStoreTest extends TestCase {
        /** @var ActionProviderStore */
        private $actionProviderStore;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->serverContainer = $this->createMock(IServerContainer::class);
index 31654b40918c9e2b6b8a25a3308ce0da7a953a41..da2d6ac4517a1a6848ca75d2f49c35555546b4fe 100644 (file)
@@ -31,7 +31,7 @@ class LinkActionTest extends TestCase {
 
        private $action;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->action = new LinkAction();
index cf801396cb1456f4813f46e1537b39ed2e812ad8..49dc1d9d8233b1b80eb75be456a330a3740827b3 100644 (file)
@@ -46,7 +46,7 @@ class ContactsStoreTest extends TestCase {
        /** @var IConfig|PHPUnit_Framework_MockObject_MockObject */
        private $config;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->contactsManager = $this->createMock(IManager::class);
index e28248fb0fb3f046ea74b9d07e2f35bba2b1ed69..1ea4782a301cdbf44c6125d16bdfc72b39177a41 100644 (file)
@@ -33,7 +33,7 @@ class EntryTest extends TestCase {
        /** @var Entry */
        private $entry;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->entry = new Entry();
index d1630e8ddebe139b7223946ee605d4c4febcc0b2..b78420e5424a7b39de0429a06999f76eff06b9b3 100644 (file)
@@ -52,7 +52,7 @@ class ManagerTest extends TestCase {
        /** @var Manager */
        private $manager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->contactsStore = $this->createMock(ContactsStore::class);
index 353c8d6f58f0ed8797cfa9f879392b8ba9135455..85ffd1e72b13df81bc2828f06b3d9bafe5c990cb 100644 (file)
@@ -43,7 +43,7 @@ class EMailproviderTest extends TestCase {
        /** @var EMailProvider */
        private $provider;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->actionFactory = $this->createMock(IActionFactory::class);
index c460330e7eb354eaa991b33fe09ca8ccd5003aed..9e8b75fbf4db2d4f6cbb7dedf849eda760c683ef 100644 (file)
@@ -9,7 +9,7 @@ class ContactsManagerTest extends \Test\TestCase {
        /** @var \OC\ContactsManager */
        private $cm;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->cm = new \OC\ContactsManager();
        }
index 02dd6a1495c03d29049d07864a5d60db62b5ca74..4683c53d339cf513069754a963b3b29918a96ee5 100644 (file)
@@ -26,12 +26,12 @@ class ConnectionTest extends \Test\TestCase {
         */
        private $connection;
 
-       public static function setUpBeforeClass() {
+       public static function setUpBeforeClass(): void {
                self::dropTestTable();
                parent::setUpBeforeClass();
        }
 
-       public static function tearDownAfterClass() {
+       public static function tearDownAfterClass(): void {
                self::dropTestTable();
                parent::tearDownAfterClass();
        }
@@ -42,12 +42,12 @@ class ConnectionTest extends \Test\TestCase {
                }
        }
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->connection = \OC::$server->getDatabaseConnection();
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                parent::tearDown();
                $this->connection->dropTable('table');
        }
index cc6059c163f351cfa1d3ac098d77a22a39abded1..5fb68fdf258d644177bf00b8e4c7c6a630ecb7ca 100644 (file)
@@ -27,7 +27,7 @@ class DBSchemaTest extends TestCase {
        /** @var ITempManager */
        protected $tempManager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->tempManager = \OC::$server->getTempManager();
@@ -50,7 +50,7 @@ class DBSchemaTest extends TestCase {
                $this->table2 = $r.'cntcts_cards';
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                unlink($this->schema_file);
                unlink($this->schema_file2);
 
index 578d28139bcdde789c49c8780eddc36dc3dd93cf..e0bb1055be1dd9d176afb998cb871b03b12e71d6 100644 (file)
@@ -21,7 +21,7 @@ class LegacyDBTest extends \Test\TestCase {
        protected static $schema_file;
        protected $test_prefix;
 
-       public static function setUpBeforeClass() {
+       public static function setUpBeforeClass(): void {
                self::$schema_file = \OC::$server->getTempManager()->getTemporaryFile();
        }
 
@@ -56,7 +56,7 @@ class LegacyDBTest extends \Test\TestCase {
         */
        private $text_table;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $dbFile = \OC::$SERVERROOT.'/tests/data/db_structure.xml';
@@ -76,7 +76,7 @@ class LegacyDBTest extends \Test\TestCase {
                $this->text_table = $this->test_prefix.'text_table';
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                OC_DB::removeDBStructure(self::$schema_file);
                unlink(self::$schema_file);
 
index 75572bb36a5d01a567bed9a82318e72c3e10202d..8c9290c56b451bd45b35e2e5577a00ebe6f8c40d 100644 (file)
@@ -20,7 +20,7 @@ use Doctrine\DBAL\Platforms\OraclePlatform;
  */
 class MDB2SchemaManagerTest extends \Test\TestCase {
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                // do not drop the table for Oracle as it will create a bogus transaction
                // that will break the following test suites requiring transactions
                if (\OC::$server->getConfig()->getSystemValue('dbtype', 'sqlite') !== 'oci') {
index 87547debe80a83501b15256dfc97b9bfe72cf758..8f38b3addd0213e2f525df048677e2e7ea5e7777 100644 (file)
@@ -36,7 +36,7 @@ class MigrationsTest extends \Test\TestCase {
        /** @var \PHPUnit_Framework_MockObject_MockObject | IDBConnection $db */
        private $db;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->db = $this->createMock(Connection::class);
index e9c52015dbebb5d7acf0464b649f5dd41034e5f9..ca778fd4e2f80f6c5d330f6b9a6248253a0b3eca 100644 (file)
@@ -44,7 +44,7 @@ class MigratorTest extends \Test\TestCase {
        /** @var string */
        private $tableNameTmp;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->config = \OC::$server->getConfig();
@@ -61,7 +61,7 @@ class MigratorTest extends \Test\TestCase {
                return strtolower($this->getUniqueID($this->config->getSystemValue('dbtableprefix', 'oc_') . 'test_'));
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                // Try to delete if exists (IF EXISTS NOT SUPPORTED IN ORACLE)
                try {
                        $this->connection->exec('DROP TABLE ' . $this->connection->quoteIdentifier($this->tableNameTmp));
index 3bbe89fe0253d1d4a40cd3b2413649770c03ac50..5ebbd273c33a5c8bf51735514ff538be5d5be663 100644 (file)
@@ -21,7 +21,7 @@ class MySqlMigrationTest extends \Test\TestCase {
        /** @var string */
        private $tableName;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->connection = \OC::$server->getDatabaseConnection();
@@ -34,7 +34,7 @@ class MySqlMigrationTest extends \Test\TestCase {
                $this->connection->exec("CREATE TABLE $this->tableName(b BIT,  e ENUM('1','2','3','4'))");
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $this->connection->getSchemaManager()->dropTable($this->tableName);
                parent::tearDown();
        }
index c71e83f5fd618b3860d8442d3a5cf81db463ec0e..8e0ce2fe9342b6075ed09512f2ce45551fa26fe1 100644 (file)
@@ -31,7 +31,7 @@ class ExpressionBuilderDBTest extends TestCase {
        /** @var \Doctrine\DBAL\Connection|\OCP\IDBConnection */
        protected $connection;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->connection = \OC::$server->getDatabaseConnection();
index f5dc2a07246bf503b0e06ef6544a6df1cd54bb50..b3e9124e7de77cd079a2f1a2d08988d9489c327f 100644 (file)
@@ -43,7 +43,7 @@ class ExpressionBuilderTest extends TestCase {
        /** @var \Doctrine\DBAL\Connection|\OCP\IDBConnection */
        protected $connection;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->connection = \OC::$server->getDatabaseConnection();
index a8af7f4fe07a38a13756c009c5c11b44d4bf043d..d7617125faa4634b17440dbd19f59f7e7bcc7171 100644 (file)
@@ -35,7 +35,7 @@ class FunctionBuilderTest extends TestCase {
        /** @var \Doctrine\DBAL\Connection|\OCP\IDBConnection */
        protected $connection;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->connection = \OC::$server->getDatabaseConnection();
index fa1c4add0ab50b666eea8e42a8ff1fbfd1c3f8d9..e9878d33d85e583c505313ca1a396923c7e95166 100644 (file)
@@ -49,7 +49,7 @@ class QueryBuilderTest extends \Test\TestCase {
        /** @var ILogger|\PHPUnit_Framework_MockObject_MockObject */
        protected $logger;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->connection = \OC::$server->getDatabaseConnection();
index 3c1abd72f66aa3cd404c70eb9c2439e1d0451b38..3b5562b69c9543bd0509cda3751b08d0db873650 100644 (file)
@@ -31,7 +31,7 @@ class QuoteHelperTest extends \Test\TestCase {
        /** @var QuoteHelper */
        protected $helper;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->helper = new QuoteHelper();
index f74d800bfec626f5f3929892caf480fd2b201960..789636985713da954c9f2edd5e51273e7730f2a3 100644 (file)
@@ -50,7 +50,7 @@ class SchemaDiffTest extends TestCase {
 
        private $schemaFile;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->schemaFile = \OC::$server->getTempManager()->getTemporaryFile();
@@ -61,7 +61,7 @@ class SchemaDiffTest extends TestCase {
                $this->testPrefix= strtolower($this->getUniqueID($this->config->getSystemValue('dbtableprefix', 'oc_'), 3));
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $this->manager->removeDBStructure($this->schemaFile);
                parent::tearDown();
        }
index 4712fc6d70b76992d6881e87dc0a838f588a66e7..ecc6cbe09513ec931fc9cead0baa1bcbe4d88f68 100644 (file)
@@ -21,7 +21,7 @@ class SqliteMigrationTest extends \Test\TestCase {
        /** @var string */
        private $tableName;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->connection = \OC::$server->getDatabaseConnection();
@@ -34,7 +34,7 @@ class SqliteMigrationTest extends \Test\TestCase {
                $this->connection->exec("CREATE TABLE $this->tableName(t0 tinyint unsigned, t1 tinyint)");
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $this->connection->getSchemaManager()->dropTable($this->tableName);
                parent::tearDown();
        }
index deb6a7c783c15e221a8ef7c5671368ddca64523d..f7f6f6633cdba9f9d127ae03923126284c3f18c5 100644 (file)
@@ -18,7 +18,7 @@ class DateTimeFormatterTest extends TestCase {
 
        static protected $defaultTimeZone;
 
-       public static function setUpBeforeClass() {
+       public static function setUpBeforeClass(): void {
                parent::setUpBeforeClass();
                self::$defaultTimeZone = date_default_timezone_get();
                date_default_timezone_set('UTC');
@@ -27,12 +27,12 @@ class DateTimeFormatterTest extends TestCase {
                self::$oneYear = self::$oneDay * 365;
        }
 
-       public static function tearDownAfterClass() {
+       public static function tearDownAfterClass(): void {
                date_default_timezone_set(self::$defaultTimeZone);
                parent::tearDownAfterClass();
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->formatter = new \OC\DateTimeFormatter(new \DateTimeZone('UTC'), \OC::$server->getL10N('lib', 'en'));
        }
index 2d0c82ba72e5f713cf7bb2c0998bf7e7c5a8c686..18009ea26fe6bf116951b36c108a53ec3eace56d 100644 (file)
@@ -29,7 +29,7 @@ class EventLoggerTest extends TestCase {
        /** @var \OC\Diagnostics\EventLogger */
        private $logger;
        
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->logger = new EventLogger();
index 99de60ed8e499ea68119c43b09d38af5177f9232..32c17064f1c5453394d3c6795911bf6a971727de 100644 (file)
@@ -29,7 +29,7 @@ class QueryLoggerTest extends TestCase {
        /** @var \OC\Diagnostics\QueryLogger */
        private $logger;
        
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->logger = new QueryLogger();
index 158e52f4a07090f1232fa7bb21458cf8734bb01e..75ea3f8ef535fe8f903a4ab2964dc1c4ca615a3f 100644 (file)
@@ -67,7 +67,7 @@ class DecryptAllTest extends TestCase {
        /** @var  DecryptAll */
        protected $instance;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->userManager = $this->getMockBuilder(IUserManager::class)
index 6a51d7697514d48036616b7d72fb59d8d80d7783..8e9e774347b68b9f57b4e7c2c918a206ea0a183d 100644 (file)
@@ -43,7 +43,7 @@ class EncryptionWrapperTest extends TestCase {
        /** @var  \PHPUnit_Framework_MockObject_MockObject | \OC\Memcache\ArrayCache */
        private $arrayCache;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->arrayCache = $this->createMock(ArrayCache::class);
index cd8f1e9b95348816761d81bbf837c85c7a21cb01..611044ba920ea84fa95fc0ac0c9eb0dc507a291f 100644 (file)
@@ -42,7 +42,7 @@ class StorageTest extends TestCase {
        /** @var \PHPUnit_Framework_MockObject_MockObject */
        protected $config;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->util = $this->getMockBuilder('OC\Encryption\Util')
index 6523407495590a9bdd2521fd00ff0a1673961b87..0919bda36b086275e493b876be6e0fd0f849b484 100644 (file)
@@ -35,7 +35,7 @@ class ManagerTest extends TestCase {
        /** @var ArrayCache|\PHPUnit_Framework_MockObject_MockObject */
        private $arrayCache;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->config = $this->createMock(IConfig::class);
                $this->logger = $this->createMock(ILogger::class);
index 68639ad6e2427fee8ba6041f238b0ddbbdeed95a..28d7ca8116359a35494d3d1e5b2363889dd58164 100644 (file)
@@ -53,7 +53,7 @@ class UpdateTest extends TestCase {
        /** @var \OC\Encryption\File | \PHPUnit_Framework_MockObject_MockObject */
        private $fileHelper;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->view = $this->getMockBuilder(View::class)
index 1e1b21d3671a6eab0149dc8d19bd198b00d72cd4..ee616d20793da8830e330165ba28ee067d1a34c6 100644 (file)
@@ -32,7 +32,7 @@ class UtilTest extends TestCase {
        /** @var  \OC\Encryption\Util */
        private $util;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->view = $this->getMockBuilder(View::class)
                        ->disableOriginalConstructor()
index fe673588bba2737a9774972b541f9cd832ee28dd..bd62a8ac0268452fd152cb1d62805326a44f7982 100644 (file)
@@ -28,7 +28,7 @@ class CloudIdManagerTest extends TestCase {
        /** @var CloudIdManager */
        private $cloudIdManager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->cloudIdManager = new CloudIdManager();
        }
index a9353540fffccf0096baed17799206afd869feaf..3932e308de09e363508a401512463c4733297ea1 100644 (file)
@@ -42,7 +42,7 @@ class AppDataTest extends \Test\TestCase {
        /** @var IAppData */
        private $appData;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->rootFolder = $this->createMock(IRootFolder::class);
index 9b7529b18d9a96975426ff3a7c04306e3b4d3917..ceed1f4ed3a7ba98692a43ffb2d9eabaf798d4cf 100644 (file)
@@ -37,7 +37,7 @@ class FactoryTest extends \Test\TestCase {
        /** @var Factory */
        private $factory;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->rootFolder = $this->createMock(IRootFolder::class);
index ccdfbbd065bacc1c5f8ff340b9afe8848b33a224..b2816c030947908910c8e6a6264b36cd245f207e 100644 (file)
@@ -777,7 +777,7 @@ class CacheTest extends \Test\TestCase {
                $this->cache->remove("sub");
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if ($this->cache) {
                        $this->cache->clear();
                }
@@ -785,7 +785,7 @@ class CacheTest extends \Test\TestCase {
                parent::tearDown();
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->storage = new \OC\Files\Storage\Temporary(array());
index a144b8cabb88d9cc5ca79a05c6fe0ec47158106f..51fc2e5bc9bc4217917371377b9c1a00fd790a74 100644 (file)
@@ -66,7 +66,7 @@ class HomeCacheTest extends \Test\TestCase {
         */
        private $user;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->user = new DummyUser('foo', \OC::$server->getTempManager()->getTemporaryFolder());
index 3d4a55c0722db1ca527f955112557c126c897caa..f93b95b5fe739a669abf23f163bbfa817822b035 100644 (file)
@@ -20,7 +20,7 @@ class FallBackCrossCacheMoveCache extends \OC\Files\Cache\Cache {
  * @group DB
  */
 class MoveFromCacheTraitTest extends CacheTest {
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->storage = new \OC\Files\Storage\Temporary(array());
index 402b29c8c3efdc7058b283d616e51844624e6b31..bbf363294612f83be50874ec80f8da02b1fd63b0 100644 (file)
@@ -20,7 +20,7 @@ class PropagatorTest extends TestCase {
        /** @var  IStorage */
        private $storage;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->storage = new Temporary();
                $this->storage->mkdir('foo/bar');
index addeac71350ad4d3aaa9f4bf2da2bcfd9068f192..5a9d3022099629c313efdd72a02b5214a2e0a5b4 100644 (file)
@@ -48,7 +48,7 @@ class QuerySearchHelperTest extends TestCase {
        /** @var  integer */
        private $numericStorageId;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->builder = \OC::$server->getDatabaseConnection()->getQueryBuilder();
                $this->mimetypeLoader = $this->createMock(IMimeTypeLoader::class);
@@ -83,7 +83,7 @@ class QuerySearchHelperTest extends TestCase {
                        ->where($this->builder->expr()->eq('storage', new Literal($this->numericStorageId)));
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                parent::tearDown();
 
                $builder = \OC::$server->getDatabaseConnection()->getQueryBuilder();
index 0f5335f441668255810a37e9e7d94785583d2359..1c0a8b0e0e91aaf8a3c71a9581523537a3861af0 100644 (file)
@@ -33,7 +33,7 @@ class ScannerTest extends \Test\TestCase {
         */
        private $cache;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->storage = new \OC\Files\Storage\Temporary(array());
@@ -41,7 +41,7 @@ class ScannerTest extends \Test\TestCase {
                $this->cache = new \OC\Files\Cache\Cache($this->storage);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if ($this->cache) {
                        $this->cache->clear();
                }
index a0cc1c5d89c7d747a382d90d3d02f6a63b1e30a6..e20cfe2ac120aae58009e02abcb70bab4d337dcf 100644 (file)
@@ -37,7 +37,7 @@ class UpdaterLegacyTest extends \Test\TestCase {
 
        private static $user;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->storage = new \OC\Files\Storage\Temporary(array());
@@ -68,7 +68,7 @@ class UpdaterLegacyTest extends \Test\TestCase {
                \OC_Hook::clear('OC_Filesystem');
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if ($this->cache) {
                        $this->cache->clear();
                }
index 54fb3f3fc979a3697e136bd79903c22a0943208a..8dc5893007bb3186c477e42163b5876c78a84c83 100644 (file)
@@ -40,7 +40,7 @@ class UpdaterTest extends \Test\TestCase {
         */
        protected $updater;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->loginAsUser();
@@ -50,7 +50,7 @@ class UpdaterTest extends \Test\TestCase {
                $this->cache = $this->storage->getCache();
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                Filesystem::clearMounts();
 
                $this->logout();
index d4aa9ac875eb3849ddf35fc6f2ee64f52918c87d..18f0ebe98a926d1bab0e94ceef342e4c314431db 100644 (file)
@@ -22,13 +22,13 @@ class WatcherTest extends \Test\TestCase {
         */
        private $storages = array();
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->loginAsUser();
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                foreach ($this->storages as $storage) {
                        $cache = $storage->getCache();
                        $ids = $cache->getAll();
index 365049c1cc6cc5d623d8eac20a9b16ce5b1a5152..744e132d2cc0fb6505d1d5aeae867b08320363b9 100644 (file)
@@ -24,7 +24,7 @@ class CacheJailTest extends CacheTest {
         */
        protected $sourceCache;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->storage->mkdir('foo');
                $this->sourceCache = $this->cache;
index c12b35867ff0a8cbe4127c4e6c923ec67a0b72c3..0e2460f74e27d81e68738927e9041b73e3887d16 100644 (file)
@@ -24,7 +24,7 @@ class CachePermissionsMaskTest extends CacheTest {
         */
        protected $sourceCache;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->storage->mkdir('foo');
                $this->sourceCache = $this->cache;
index 4bfc8710951a462b662c763ae3197a92a8ed1d3e..ba1011aa68ecc25c9aae64b30d4347d2cd1993ff 100644 (file)
@@ -42,7 +42,7 @@ class UserMountCacheTest extends TestCase {
 
        private $fileIds = [];
 
-       public function setUp() {
+       public function setUp(): void {
                $this->fileIds = [];
                $this->connection = \OC::$server->getDatabaseConnection();
                $this->userManager = new Manager($this->createMock(IConfig::class), $this->createMock(EventDispatcherInterface::class));
@@ -54,7 +54,7 @@ class UserMountCacheTest extends TestCase {
                $this->cache = new \OC\Files\Config\UserMountCache($this->connection, $this->userManager, $this->createMock(Log::class));
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                $builder = $this->connection->getQueryBuilder();
 
                $builder->delete('mounts')->execute();
index ef7bf7cfbb7cee87037d1f07401d8b229435641b..acda220d01f12778d8b3274959119935a98dc88d 100644 (file)
@@ -28,7 +28,7 @@ class EtagTest extends \Test\TestCase {
         */
        private $userBackend;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                \OC_Hook::clear('OC_Filesystem', 'setup');
@@ -46,7 +46,7 @@ class EtagTest extends \Test\TestCase {
                \OC_User::useBackend($this->userBackend);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                \OC::$server->getConfig()->setSystemValue('datadirectory', $this->datadir);
 
                $this->logout();
index b1ab880ad70467f646504cbf9b91d4d71dca69fb..5c7c5cdc36188ab062a859c3c8d19674f06eda33 100644 (file)
@@ -23,7 +23,7 @@ class FileInfoTest extends TestCase {
 
        private $config;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->createUser('foo', 'foo');
                $this->config = $this->getMockBuilder(IConfig::class)->getMock();
index 6fc6fbe9d7cae5e10b5f66b26dcefa6e15dd3123..6b6e3feda33b774b9898c127bdbf5bdde93f3f93 100644 (file)
@@ -77,7 +77,7 @@ class FilesystemTest extends \Test\TestCase {
                return array('datadir' => $dir);
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $userBackend = new \Test\Util\User\Dummy();
                $userBackend->createUser(self::TEST_FILESYSTEM_USER1, self::TEST_FILESYSTEM_USER1);
@@ -86,7 +86,7 @@ class FilesystemTest extends \Test\TestCase {
                $this->loginAsUser();
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                foreach ($this->tmpDirs as $dir) {
                        \OC_Helper::rmdirr($dir);
                }
index 7633ffb2f2db3d315a8257540649532437932cd8..f3cdc4264e4b76fc21db7f7136030693514afe20 100644 (file)
@@ -22,7 +22,7 @@ class ManagerTest extends \Test\TestCase {
         */
        private $manager;
 
-       protected function setup() {
+       protected function setUp(): void {
                parent::setUp();
                $this->manager = new \OC\Files\Mount\Manager();
        }
index 9aa0143b4a7968a9122758cdfa5af5a0175dc925..5cd517df3c95b0dfbc175c93f8e7f4bb78186f08 100644 (file)
@@ -21,7 +21,7 @@ class ObjectHomeMountProviderTest extends \Test\TestCase {
        /** @var IStorageFactory|\PHPUnit_Framework_MockObject_MockObject */
        protected $loader;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(IConfig::class);
index 5180dbb9fe2d86ceaf48e20d7572e8e5af39a899..9c47df02f3bdb314ada583127d2722153b1fc238 100644 (file)
@@ -53,7 +53,7 @@ class HookConnectorTest extends TestCase {
         */
        private $userId;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->userId = $this->getUniqueID();
                $this->createUser($this->userId, 'pass');
@@ -71,7 +71,7 @@ class HookConnectorTest extends TestCase {
                $this->eventDispatcher = \OC::$server->getEventDispatcher();
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                parent::tearDown();
                \OC_Hook::clear('OC_Filesystem');
                \OC_Util::tearDownFS();
index 6d9b0ce20b94e481375ccbfe2417fe99959ae9ee..2a542a1097a1dbeb4a767e99714f5c50b37d3d3d 100644 (file)
@@ -38,7 +38,7 @@ class IntegrationTest extends \Test\TestCase {
         */
        private $view;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $manager = \OC\Files\Filesystem::getMountManager();
@@ -65,7 +65,7 @@ class IntegrationTest extends \Test\TestCase {
                $this->root->mount($subStorage, '/substorage/');
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                foreach ($this->storages as $storage) {
                        $storage->getCache()->clear();
                }
index 566c84e2c8586ae19b0bbb7e1de1c0cc7177c072..14ae0b0ead330c5b4441525778cbff9202e77027 100644 (file)
@@ -43,7 +43,7 @@ abstract class NodeTest extends \Test\TestCase {
        /** @var IUserManager|\PHPUnit_Framework_MockObject_MockObject */
        protected $userManager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->user = $this->createMock(IUser::class);
index 8a6e5411f26e4e1cf9de56b4c22396ac0033b08e..70ffe1b25c456a003e047cdb74fa79d516d1defa 100644 (file)
@@ -36,7 +36,7 @@ class RootTest extends \Test\TestCase {
        /** @var IUserManager|\PHPUnit_Framework_MockObject_MockObject */
        private $userManager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->user = $this->createMock(IUser::class);
index 1832ed8d61a3bf597a608b389876a30a324efae8..8b879e8ab371e0a8eba7a0cd801e7b616e83f427 100644 (file)
@@ -19,7 +19,7 @@ class NoopScannerTest extends \Test\TestCase {
        /** @var \OC\Files\ObjectStore\NoopScanner $scanner */
        private $scanner;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->storage = new \OC\Files\Storage\Temporary(array());
index ce9c9d2cd695f9a2d5787872d41610ec58762d39..b8c7b15e039681fd9073cb0e23ed9ea6a37c0a0b 100644 (file)
@@ -38,7 +38,7 @@ class ObjectStoreStorageTest extends Storage {
         */
        private $objectStorage;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $baseStorage = new Temporary();
@@ -47,7 +47,7 @@ class ObjectStoreStorageTest extends Storage {
                $this->instance = new ObjectStoreStorageOverwrite($config);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if (is_null($this->instance)) {
                        return;
                }
index 7e0b7dd2650718b6548bdf0bad5ad4a1825c09aa..02ea3df6cb64b62621ea84ead803ba5b8b630664 100644 (file)
@@ -25,7 +25,7 @@ class PathVerificationTest extends \Test\TestCase {
         */
        private $view;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->view = new View();
        }
index b31fa348afa9ffdf3516d5b19693665b3b74d1c0..ba8688fea01bb43ef9ae788a1312aacfdc0daf0d 100644 (file)
@@ -36,7 +36,7 @@ class SimpleFileTest extends \Test\TestCase  {
        /** @var SimpleFile */
        private $simpleFile;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->file = $this->createMock(File::class);
index 551d8c9520540b585e534d3d6e967f4a189e79a6..9c55367f44f02da8615930ff1f0706467a735049 100644 (file)
@@ -37,7 +37,7 @@ class SimpleFolderTest extends \Test\TestCase  {
        /** @var SimpleFolder */
        private $simpleFolder;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->folder = $this->createMock(Folder::class);
index f7be996e5ea8e5617af6ba02a95349d1c6317f1b..0900765c5100cb0b13c21c5303674fc814a715be 100644 (file)
@@ -39,14 +39,14 @@ class CommonTest extends Storage {
         */
        private $tmpDir;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->tmpDir = \OC::$server->getTempManager()->getTemporaryFolder();
                $this->instance = new \OC\Files\Storage\CommonTest(['datadir' => $this->tmpDir]);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                \OC_Helper::rmdirr($this->tmpDir);
                parent::tearDown();
        }
index 034ffb5a53a4ba4d8b4fb4e58d436e6db77d1e2f..d56cc37124db115624f1e1de947cf84b10a8c2cc 100644 (file)
@@ -45,7 +45,7 @@ class CopyDirectoryStorage extends StorageNoRecursiveCopy {
  */
 class CopyDirectoryTest extends Storage {
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->instance = new CopyDirectoryStorage([]);
        }
index e6899ff7d3821f00b8964e404e6f286da3eb083e..6075e9af2934cb299951b058547cf9e1eb1feeb3 100644 (file)
@@ -67,7 +67,7 @@ class HomeTest extends Storage {
         */
        private $user;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->tmpDir = \OC::$server->getTempManager()->getTemporaryFolder();
@@ -76,7 +76,7 @@ class HomeTest extends Storage {
                $this->instance = new \OC\Files\Storage\Home(array('user' => $this->user));
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                \OC_Helper::rmdirr($this->tmpDir);
                parent::tearDown();
        }
index c611a990236f44ddde4162aafe0a5b85ece97a9e..3b83a349cfa2e577c5813893cda269ca4935b8b2 100644 (file)
@@ -35,14 +35,14 @@ class LocalTest extends Storage {
         */
        private $tmpDir;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->tmpDir = \OC::$server->getTempManager()->getTemporaryFolder();
                $this->instance = new \OC\Files\Storage\Local(array('datadir' => $this->tmpDir));
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                \OC_Helper::rmdirr($this->tmpDir);
                parent::tearDown();
        }
index 1672d17e36bf61fe1d4d9ccb46e8fc9e4fc32986..e8eb49ec014b694d6fc356b2fbfcc7a235127416 100644 (file)
@@ -35,7 +35,7 @@ class AvailabilityTest extends \Test\TestCase {
        /** @var Availability  */
        protected $wrapper;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->storageCache = $this->createMock(StorageCache::class);
index 24bf10eb7891b8de0ea33cc9816f0f6de37f0833..5b4443eecfc9df40b7669cf19b35f3238c051f64 100644 (file)
@@ -18,7 +18,7 @@ class EncodingTest extends \Test\Files\Storage\Storage {
         */
        private $sourceStorage;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->sourceStorage = new \OC\Files\Storage\Temporary([]);
                $this->instance = new \OC\Files\Storage\Wrapper\Encoding([
@@ -26,7 +26,7 @@ class EncodingTest extends \Test\Files\Storage\Storage {
                ]);
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                $this->sourceStorage->cleanUp();
                parent::tearDown();
        }
index 70d94ab16e62dc50f0c1e37aea06a574f457f155..eb43eb733597cbb7a5b779ff88dd66c2dfb73d43 100644 (file)
@@ -108,7 +108,7 @@ class EncryptionTest extends Storage {
        /** @var  integer dummy unencrypted size */
        private $dummySize = -1;
 
-       protected function setUp() {
+       protected function setUp(): void {
 
                parent::setUp();
 
index b03eb0bcc63218a6adc8c39a7125a5b86440000b..1091809f96c87e108d152122a761021261351c6a 100644 (file)
@@ -15,7 +15,7 @@ class JailTest extends \Test\Files\Storage\Storage {
         */
        private $sourceStorage;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->sourceStorage = new \OC\Files\Storage\Temporary(array());
                $this->sourceStorage->mkdir('foo');
@@ -25,7 +25,7 @@ class JailTest extends \Test\Files\Storage\Storage {
                ));
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                // test that nothing outside our jail is touched
                $contents = array();
                $dh = $this->sourceStorage->opendir('');
index 388272b410774e39c64233dbad2d4ade0c9b1cee..c9545ae3f288ad17d0dcfeb6f8f8bc3481975aa2 100644 (file)
@@ -22,13 +22,13 @@ class PermissionsMaskTest extends \Test\Files\Storage\Storage {
         */
        private $sourceStorage;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->sourceStorage = new \OC\Files\Storage\Temporary(array());
                $this->instance = $this->getMaskedStorage(Constants::PERMISSION_ALL);
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                $this->sourceStorage->cleanUp();
                parent::tearDown();
        }
index 0b80467fcc4895b7a722033479cbaacbcda1fbc5..0061ca3910ed5c77fee7ba17217b30c076498eec 100644 (file)
@@ -27,7 +27,7 @@ class QuotaTest extends \Test\Files\Storage\Storage {
         */
        private $tmpDir;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->tmpDir = \OC::$server->getTempManager()->getTemporaryFolder();
@@ -35,7 +35,7 @@ class QuotaTest extends \Test\Files\Storage\Storage {
                $this->instance = new \OC\Files\Storage\Wrapper\Quota(array('storage' => $storage, 'quota' => 10000000));
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                \OC_Helper::rmdirr($this->tmpDir);
                parent::tearDown();
        }
index 942ff27fc35ce63ac808ed5a2ac45630f6a45b98..2477b361bc11782193e682e24d8778859760818e 100644 (file)
@@ -14,7 +14,7 @@ class WrapperTest extends \Test\Files\Storage\Storage {
         */
        private $tmpDir;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->tmpDir = \OC::$server->getTempManager()->getTemporaryFolder();
@@ -22,7 +22,7 @@ class WrapperTest extends \Test\Files\Storage\Storage {
                $this->instance = new \OC\Files\Storage\Wrapper\Wrapper(array('storage' => $storage));
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                \OC_Helper::rmdirr($this->tmpDir);
                parent::tearDown();
        }
index 1d01a96fcc0ad682b6b2d88719570dfe2161bfd2..c0cd2a24411b84bab16431d4b5081f388b980bd0 100644 (file)
@@ -28,7 +28,7 @@ class DetectionTest extends \Test\TestCase {
        /** @var Detection */
        private $detection;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->detection = new Detection(
                        \OC::$server->getURLGenerator(),
index cf6aa31a04770a7e5ed08ea5864225a2ec4bef6e..a99c80dac479e6bb0890e61e809dce378dbce15d 100644 (file)
@@ -30,12 +30,12 @@ class LoaderTest extends \Test\TestCase {
        /** @var Loader */
        protected $loader;
 
-       protected function setUp() {
+       protected function setUp(): void {
                $this->db = \OC::$server->getDatabaseConnection();
                $this->loader = new Loader($this->db);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $deleteMimetypes = $this->db->getQueryBuilder();
                $deleteMimetypes->delete('mimetypes')
                        ->where($deleteMimetypes->expr()->like(
index 8748b52f0caa1df1ba7195125b398ac27861e578..9f057960b602c8dd9124a4d7164e5ff75f0616f8 100644 (file)
@@ -47,7 +47,7 @@ class ScannerTest extends \Test\TestCase {
         */
        private $userBackend;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->userBackend = new \Test\Util\User\Dummy();
@@ -55,7 +55,7 @@ class ScannerTest extends \Test\TestCase {
                $this->loginAsUser();
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $this->logout();
                \OC::$server->getUserManager()->removeBackend($this->userBackend);
                parent::tearDown();
index c154c28e24a9a43cafadf9203b0b834c280c8363..1e564c69092de8ddf2e7d348c2b09f86ae97ffec 100644 (file)
@@ -85,7 +85,7 @@ class ViewTest extends \Test\TestCase {
        /** @var \OC\Files\Storage\Storage */
        private $tempStorage;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                \OC_Hook::clear();
 
@@ -109,7 +109,7 @@ class ViewTest extends \Test\TestCase {
                $this->tempStorage = null;
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                \OC_User::setUserId($this->user);
                foreach ($this->storages as $storage) {
                        $cache = $storage->getCache();
index ab5ef351fc0aeebc108954c90b5e69b6a0806d1b..4ceb34dc02fa5aecef2107b4bcf03f8d2154d72d 100644 (file)
@@ -31,7 +31,7 @@ class ConfigTest extends TestCase {
        /** @var  IConfig|\PHPUnit_Framework_MockObject_MockObject */
        private $config;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(IConfig::class);
index 395a442c5e39c2cf4a9aa38a73962465b6dcf88a..4af8b1cd4308c644ea5a1ccc8afc97a4bb5ba8bf 100644 (file)
@@ -45,12 +45,12 @@ class DatabaseTest extends Backend {
                return $name;
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->backend = new \OC\Group\Database();
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                foreach ($this->groups as $group) {
                        $this->backend->deleteGroup($group);
                }
index 5504cd63a0aa1126b0f70b1e6eec4d5bfc7f909f..3be0415993873aa1653b8f2c5e82e94a8ce490cd 100644 (file)
@@ -28,7 +28,7 @@ namespace Test\Group;
  * @group DB
  */
 class Dummy extends Backend {
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->backend=new \Test\Util\Group\Dummy();
        }
index 5ab7a645081d98827f6661f6eb5e92be65209466..1a240d5bc98008a5b4e8195926dc6e595f3f59be 100644 (file)
@@ -21,7 +21,7 @@ class GroupTest extends \Test\TestCase {
        /** @var EventDispatcherInterface|MockObject */
        protected $dispatcher;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->dispatcher = $this->createMock(EventDispatcherInterface::class);
        }
index 3069f9d148baac3aa878784b9c24a3a98aa9fc3a..86665ee087959a84435d17c1c437553ce926a52d 100644 (file)
@@ -40,7 +40,7 @@ class ManagerTest extends TestCase {
        /** @var ILogger|MockObject */
        protected $logger;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->userManager = $this->createMock(Manager::class);
index c24155aef370ce8c4fcc777073dc79d142e5a09a..c53a7eb2adf8ad3d4b114bc1803596308fa879d6 100644 (file)
@@ -34,7 +34,7 @@ class MetaDataTest extends \Test\TestCase {
        /** @var bool */
        private $isAdmin = true;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->groupManager = $this->getMockBuilder('\OC\Group\Manager')
                        ->disableOriginalConstructor()
index dacd73a4f013642032101a92734816a5ee96e96f..7b2fb6657331c8c99dc723e3c822598671452d7f 100644 (file)
@@ -22,7 +22,7 @@ class HelperStorageTest extends \Test\TestCase {
        /** @var \OC\Files\Storage\Storage */
        private $storage;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->user = $this->getUniqueID('user_');
@@ -38,7 +38,7 @@ class HelperStorageTest extends \Test\TestCase {
                $this->storageMock = null;
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $this->user = null;
 
                if ($this->storageMock) {
index 7b71bb8259e3aa25b56c3afbead5494403ff5104..948659faaba0832f13d5ae593b75c2af0380a926 100644 (file)
@@ -37,7 +37,7 @@ class BasicEmitterTest extends \Test\TestCase {
         */
        protected $emitter;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->emitter = new DummyEmitter();
        }
index 60a29f23245a63856db135a9af405a5f10746134..32c923d8013a491db3395c1efba3ec5fd5bbaaff 100644 (file)
@@ -26,7 +26,7 @@ class LegacyEmitterTest extends BasicEmitterTest {
        //we can't use exceptions here since OC_Hooks catches all exceptions
        private static $emitted = false;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->emitter = new DummyLegacyEmitter();
index 5c0693732bc207d929e9e24d99d496eb02caf60e..0f91769d25e4c71989c6f83c68b9f1d23fddd376 100644 (file)
@@ -29,7 +29,7 @@ class ClientTest extends \Test\TestCase {
        /** @var array */
        private $defaultRequestOptions;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->config = $this->createMock(IConfig::class);
                $this->guzzleClient = $this->getMockBuilder(\GuzzleHttp\Client::class)
index f62563a95e98b0d954f9dcc45560e56a1890b0e1..9707e955bcba61c86e62ea4aa96bae7e09ed1e3a 100644 (file)
@@ -19,7 +19,7 @@ class ResponseTest extends \Test\TestCase {
        /** @var GuzzleResponse */
        private $guzzleResponse;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->guzzleResponse = new GuzzleResponse(1337);
        }
index 8f37d9814f05c12bde3a3b1444ca0b79453d02b7..34fcf0e004dc734b1389978e92f818f869536b7c 100644 (file)
@@ -12,7 +12,7 @@ use OC;
 use OCP\IConfig;
 
 class ImageTest extends \Test\TestCase {
-       public static function tearDownAfterClass() {
+       public static function tearDownAfterClass(): void {
                @unlink(OC::$SERVERROOT.'/tests/data/testimage2.png');
                @unlink(OC::$SERVERROOT.'/tests/data/testimage2.jpg');
 
index 08bff615e3e2c69f244f49cc37ab9c428fc09565..2a97f07ac21976e3dad5e65e1d5bfd5ebcae2e91 100644 (file)
@@ -36,7 +36,7 @@ class InitialStateServiceTest extends TestCase {
        /** @var InitialStateService */
        private $service;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->service = new InitialStateService(
index 9fb813aaac6783183e8a6807e833429a68994dac..509dfdb66abad17e1403a66622a4061728767adf 100644 (file)
@@ -40,7 +40,7 @@ class InstallerTest extends TestCase {
        /** @var IConfig|\PHPUnit_Framework_MockObject_MockObject */
        private $config;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->appFetcher = $this->createMock(AppFetcher::class);
@@ -72,7 +72,7 @@ class InstallerTest extends TestCase {
                );
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $installer = new Installer(
                        \OC::$server->getAppFetcher(),
                        \OC::$server->getHTTPClientService(),
index febd9f56622bf30230835a65ff0b9e1a91d9a143..e7553aeac1f45ee5859fa7d10474000c25860075 100644 (file)
@@ -51,7 +51,7 @@ class CheckerTest extends TestCase {
        /** @var \OC\Files\Type\Detection|\PHPUnit_Framework_MockObject_MockObject */
        private $mimeTypeDetector;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->environmentHelper = $this->createMock(EnvironmentHelper::class);
                $this->fileAccessHelper = $this->createMock(FileAccessHelper::class);
index d0083298b22d4c7b4ef5b14e702cacc0af549714..333b29f826c4492760e6c19a80e8d5d82069722f 100644 (file)
@@ -28,7 +28,7 @@ class AppLocatorTest extends TestCase {
        /** @var AppLocator */
        private $locator;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->locator = new AppLocator();
        }
index 9dc9214a77985147c081fa4fcd31b35b5fca800b..079baaafe9fd46d2aa2879325e382a1268f6824c 100644 (file)
@@ -28,9 +28,9 @@ class EnvironmentHelperTest extends TestCase {
        /** @var EnvironmentHelper */
        private $environmentHelper;
 
-       public function setUp() {
+       public function setUp(): void {
                $this->environmentHelper = new EnvironmentHelper();
-               return parent::setUp();
+               parent::setUp();
        }
 
        public function testGetServerRoot() {
index f2ac46555f55c89aa91f7464c25ce41cb2086a0c..87c064a845874e3b4c39a375d23cd1ef4301b794 100644 (file)
@@ -28,7 +28,7 @@ class FileAccessHelperTest extends TestCase {
        /** @var FileAccessHelper */
        private $fileAccessHelper;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->fileAccessHelper = new FileAccessHelper();
        }
index 735a5e2d19a1a076b193c22c2ca2d213cbf69d74..081d2b5cb0107fa6c62089f6653c19846bac5695 100644 (file)
@@ -28,7 +28,7 @@ class ExcludeFileByNameFilterIteratorTest extends TestCase {
        /** @var ExcludeFileByNameFilterIterator|\PHPUnit\Framework\MockObject\MockObject */
        protected $filter;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->filter = $this->getMockBuilder(ExcludeFileByNameFilterIterator::class)
                        ->disableOriginalConstructor()
index 6b9bd053568d2934ed7105c7290393fb78a23ab7..9235542b199282c0349b34b49bd195a5cfdfaf20 100644 (file)
@@ -36,7 +36,7 @@ class FactoryTest extends TestCase {
        /** @var string */
        protected $serverRoot;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->config = $this->getMockBuilder(IConfig::class)
index c8b1b24685ff169e982e0c4d0061fa47bfccfc1a..f0ba1bc0aebd5bd31a3c22bd92bee630f0aa3fca 100644 (file)
@@ -36,7 +36,7 @@ class LanguageIteratorTest extends TestCase {
        /** @var LanguageIterator */
        protected $iterator;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->user = $this->createMock(IUser::class);
index b2735d7f6190850cdbe1f067519ee26e7ff3a1e8..f9c90cced5b66de97f0b2f5c776e5fbabf9a5dd2 100644 (file)
@@ -20,7 +20,7 @@ class LargeFileHelperGetFileSizeTest extends TestCase {
        /** @var \OC\LargeFileHelper */
        protected $helper;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->helper = new \OC\LargeFileHelper();
        }
index 7d155ff8b4475ea140ddedf8efc203806e718dc7..bfe26246918fbee124dcd2b593cf09ae6776184e 100644 (file)
@@ -11,7 +11,7 @@ namespace Test;
 class LargeFileHelperTest extends TestCase {
        protected $helper;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->helper = new \OC\LargeFileHelper;
        }
index 96cd190fd62e078932fb403c16c12fdc2e850ba1..b86c4893676e50cbac0cadb942d403b3692b8aed 100644 (file)
@@ -15,11 +15,11 @@ class LegacyHelperTest extends \Test\TestCase {
        /** @var string */
        private $originalWebRoot;
 
-       public function setUp() {
+       public function setUp(): void {
                $this->originalWebRoot = \OC::$WEBROOT;
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                // Reset webRoot
                \OC::$WEBROOT = $this->originalWebRoot;
        }
index e8419815e315f4abc9759f2b1598814ff986a60b..b7929aee4761ec8a698ca1fdcab0ad47ed396ab3 100644 (file)
@@ -49,7 +49,7 @@ class DBLockingProviderTest extends LockingProvider {
 
        protected $currentTime;
 
-       public function setUp() {
+       public function setUp(): void {
                $this->currentTime = time();
                $this->timeFactory = $this->createMock(ITimeFactory::class);
                $this->timeFactory->expects($this->any())
@@ -68,7 +68,7 @@ class DBLockingProviderTest extends LockingProvider {
                return new \OC\Lock\DBLockingProvider($this->connection, \OC::$server->getLogger(), $this->timeFactory, 3600);
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                $this->connection->executeQuery('DELETE FROM `*PREFIX*file_locks`');
                parent::tearDown();
        }
index 9c0461e2e60f97601060e46282ff86849967581a..7faca3ea90ce04f740d9f5bba44e711bb6118178 100644 (file)
@@ -36,7 +36,7 @@ abstract class LockingProvider extends TestCase {
         */
        abstract protected function getInstance();
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->instance = $this->getInstance();
        }
index baf99dbb2bbffd5ca275b90894bf799e64b350e2..6d37aaa53677be097b19802f489c91bf4e727902 100644 (file)
@@ -38,7 +38,7 @@ class MemcacheLockingProviderTest extends LockingProvider {
                return new \OC\Lock\MemcacheLockingProvider($this->memcache);
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                $this->memcache->clear();
                parent::tearDown();
        }
index a0900ad769d39b237658633cb28718b4b8c02c9b..eaaa7b129554e5b15c34d415d3af6b5eeda54648 100644 (file)
@@ -34,16 +34,16 @@ use Test\Traits\UserTrait;
 class NoFSTest extends \Test\TestCase {
        use UserTrait;
 
-       public function tearDown() {
+       public function tearDown(): void {
                $token = new DefaultToken();
                $token->setScope([
                        'filesystem' => true
                ]);
                \OC::$server->getLockdownManager()->setToken($token);
-               return parent::tearDown();
+               parent::tearDown();
        }
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $token = new DefaultToken();
                $token->setScope([
index 7773241fca17c0200661c35865cd447b877afd9e..f9c6fb3ff6ccc466c53aec67e5255322fa9a587b 100644 (file)
@@ -34,7 +34,7 @@ class NulLCacheTest extends \Test\TestCase {
        /** @var NullCache */
        private $cache;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->cache = new NullCache();
index a8e2d8d6ba48ac5f5e714ad228e1b00c58b4b5da..97a5b775d06393881002c791a61c4c269f5fc7c6 100644 (file)
@@ -36,7 +36,7 @@ class NullStorageTest extends TestCase  {
        /** @var NullStorage */
        private $storage;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->storage = new NullStorage([]);
index 1d206dbf4098c3c5d0dda43563ccb2e325673763..2f1c794d4d75becb58f6249962cd37a4c8914136 100644 (file)
@@ -29,7 +29,7 @@ use Test\TestCase;
 class LockdownManagerTest extends TestCase {
        private $sessionCallback;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->sessionCallback = function() {
index c2c3a4ff68b7896dce57fdfdbe67850d9de33ca7..0bbcdc0a23c9afba07754687d0410a1ab662d672 100644 (file)
@@ -32,7 +32,7 @@ class FileTest extends TestCase
        /** @var File */
        protected $logFile;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $config = \OC::$server->getSystemConfig();
                $this->restore_logfile = $config->getValue("logfile");
@@ -41,7 +41,7 @@ class FileTest extends TestCase
                $config->setValue("logfile", $config->getValue('datadirectory') . "/logtest.log");
                $this->logFile = new File($config->getValue('datadirectory') . '/logtest.log', '', $config);
        }
-       protected function tearDown() {
+       protected function tearDown(): void {
                $config = \OC::$server->getSystemConfig();
                if (isset($this->restore_logfile)) {
                        $config->getValue("logfile", $this->restore_logfile);
index ea6b12436e6e09e5320200a16de97fa3d4ba2fcc..37dbf1d97b8ed873700b28cc40c70a5b7e26e254 100644 (file)
@@ -48,7 +48,7 @@ class LogFactoryTest extends TestCase {
        /** @var SystemConfig|\PHPUnit_Framework_MockObject_MockObject */
        protected $systemConfig;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->c = $this->createMock(IServerContainer::class);
index 83cb87b873318de3a06a75e537c6f60f604a6019..f22896e98791949bb130b279bfc4b40ba1cff2d4 100644 (file)
@@ -26,7 +26,7 @@ class LoggerTest extends TestCase implements IWriter {
        /** @var array */
        private $logs = [];
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->logs = [];
index d4687c44b069d4d61844e144843fe3fe283fea94..60d7d2bbbf87bb5154f93c315088eb3a6d890b7c 100644 (file)
@@ -39,7 +39,7 @@ class EMailTemplateTest extends TestCase {
        /** @var EMailTemplate */
        private $emailTemplate;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->defaults = $this->createMock(Defaults::class);
index 1913cc1176c98929f85e94a18a7b60ad52833106..911e57082963f205a043500d68aaafd7c3f27486 100644 (file)
@@ -31,7 +31,7 @@ class MailerTest extends TestCase {
        /** @var Mailer */
        private $mailer;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(IConfig::class);
index 4b656938e48fb821f3bb224537566ae4e2248f0e..729178d328d56565224aa574c57aaa5b01479772 100644 (file)
@@ -31,7 +31,7 @@ class MessageTest extends TestCase {
                );
        }
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->swiftMessage = $this->getMockBuilder('\Swift_Message')
index 41de75a8ea8f55abcb16c9272515cc7659c53795..199acbe263be9d803089123ac56b98a624968088 100644 (file)
@@ -10,7 +10,7 @@
 namespace Test\Memcache;
 
 class APCuTest extends Cache {
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                if(!\OC\Memcache\APCu::isAvailable()) {
index 3ae8c116a01b9465d6f19d1d6a9443bb230afe70..4e3623d344d07cbd2467044df6892b05a51642b9 100644 (file)
@@ -10,7 +10,7 @@
 namespace Test\Memcache;
 
 class ArrayCacheTest extends Cache {
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->instance = new \OC\Memcache\ArrayCache('');
        }
index 8d6a231dd8d645ece6d4c782313578291a19e8b5..ab316738c9cac644a581ab0c4979fb93a1dcceab 100644 (file)
@@ -123,7 +123,7 @@ abstract class Cache extends \Test\Cache\TestCache {
        }
 
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if ($this->instance) {
                        $this->instance->clear();
                }
index 865d8594bbbd57939c48ae253e99dd27c2a1c925..96b889926651bf391a38b43f865344cefee8bef3 100644 (file)
@@ -10,7 +10,7 @@
 namespace Test\Memcache;
 
 class MemcachedTest extends Cache {
-       static public function setUpBeforeClass() {
+       static public function setUpBeforeClass(): void {
                parent::setUpBeforeClass();
 
                if (!\OC\Memcache\Memcached::isAvailable()) {
@@ -22,7 +22,7 @@ class MemcachedTest extends Cache {
                }
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->instance = new \OC\Memcache\Memcached($this->getUniqueID());
        }
index 6a0a82f6aa78812126e32d617788173cf370b080..ba16b4a2bf1dc48478dbef197e23bbfe93d3db5c 100644 (file)
@@ -10,7 +10,7 @@
 namespace Test\Memcache;
 
 class RedisTest extends Cache {
-       static public function setUpBeforeClass() {
+       static public function setUpBeforeClass(): void {
                parent::setUpBeforeClass();
 
                if (!\OC\Memcache\Redis::isAvailable()) {
@@ -44,7 +44,7 @@ class RedisTest extends Cache {
                }
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->instance = new \OC\Memcache\Redis($this->getUniqueID());
        }
index df81fd45772d78bdf97a2cdea856889abfd320be..3b94c22fd509e9a28a6b97016a5afe2f3e9ab6d0 100644 (file)
@@ -68,7 +68,7 @@ class BackgroundRepairTest extends TestCase {
        /** @var EventDispatcherInterface|\PHPUnit_Framework_MockObject_MockObject $dispatcher  */
        private $dispatcher;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->jobList = $this->getMockBuilder('OC\BackgroundJob\JobList')
index acf0808878417ced28b13e7c8a387afaf698a524..74cb3948c5e5cf672e8f33044e42d55eaa031304 100644 (file)
@@ -41,7 +41,7 @@ class NavigationManagerTest extends TestCase {
        /** @var \OC\NavigationManager */
        protected $navigationManager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->appManager        = $this->createMock(AppManager::class);
index 9160ea7a7c34c59c1311a492efcf5de850220c02..5103babd0e26af25995a8e27b1d792f769ef67b3 100644 (file)
@@ -30,7 +30,7 @@ class ActionTest extends TestCase {
        /** @var IAction */
        protected $action;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->action = new Action();
        }
index 259ac0beefe729f3e6b30e4303be33149e9ffe8a..5de0b572607988e37ac81ffda13500a54dd7527c 100644 (file)
@@ -40,7 +40,7 @@ class ManagerTest extends TestCase {
        /** @var ILogger|MockObject */
        protected $logger;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->validator = $this->createMock(IValidator::class);
                $this->logger = $this->createMock(ILogger::class);
index d72c9f62ae009b29d37dd3e9341ec9e46d4dae99..6b021ceb6d3de2b2f879f5f73e37897e84315e2d 100644 (file)
@@ -35,7 +35,7 @@ class NotificationTest extends TestCase {
        /** @var IValidator|\PHPUnit_Framework_MockObject_MockObject */
        protected $validator;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->validator = $this->createMock(IValidator::class);
                $this->notification = new Notification($this->validator);
index f8ec68f6f551d7d066b880f2073d7b022da5ca74..cbdde7bc3133775f6ed8139011435c8f163349bc 100644 (file)
@@ -39,7 +39,7 @@ class DiscoveryServiceTest extends TestCase {
        /** @var  IDiscoveryService */
        private $discoveryService;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->cacheFactory = $this->getMockBuilder(ICacheFactory::class)->getMock();
index 9444544d12a2398b90598d5fe2c84e4d0caea944..4f962f7f791af8778a0a4d1c607aaef491d8dcbc 100644 (file)
@@ -31,7 +31,7 @@ class ProviderTest extends \Test\TestCase {
        /** @var Provider */
        private $ocsProvider;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->request = $this->getMockBuilder('\\OCP\\IRequest')->getMock();
index b33d75c6aa6f04dc02284a952125be2581aad05e..65e30df4a155190dd3841c20c364a4dbebc88627 100644 (file)
@@ -61,7 +61,7 @@ class BackgroundCleanupJobTest extends \Test\TestCase {
        /** @var IRootFolder */
        private $rootFolder;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->userId = $this->getUniqueID();
@@ -87,7 +87,7 @@ class BackgroundCleanupJobTest extends \Test\TestCase {
                $this->rootFolder = \OC::$server->getRootFolder();
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                if ($this->trashEnabled) {
                        $appManager = \OC::$server->getAppManager();
                        $appManager->enableApp('files_trashbin');
@@ -95,7 +95,7 @@ class BackgroundCleanupJobTest extends \Test\TestCase {
 
                $this->logout();
 
-               return parent::tearDown();
+               parent::tearDown();
        }
 
        private function setup11Previews(): array {
index 32d6ce896e4c43537f23cbb317ccbf6cda226401..63f9c6a013e67f732128285c6f2f065276bb77c6 100644 (file)
@@ -30,7 +30,7 @@ namespace Test\Preview;
  */
 class BitmapTest extends Provider {
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $fileName = 'testimage.eps';
index c7fe1ea5f8a7e2f474a34d62a4773e0bd83b2115..167f6aba1b717f79655c840529275b152a287b07 100644 (file)
@@ -58,7 +58,7 @@ class GeneratorTest extends \Test\TestCase {
        /** @var Generator */
        private $generator;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(IConfig::class);
index a3cc37d24fb7b064f4b1c31ca0856c1e0b707c23..2b4c63098b5f148c44698630303882d5f5e1db6c 100644 (file)
@@ -30,7 +30,7 @@ namespace Test\Preview;
  */
 class HEICTest extends Provider {
 
-       public function setUp() {
+       public function setUp(): void {
                if ( !in_array("HEIC", \Imagick::queryFormats("HEI*")) ) {
                        $this->markTestSkipped('ImageMagick is not HEIC aware. Skipping tests');
                } else {
index a55433a2682efdb8382be37386022752a2227a4e..200deef386639a8813184b126794db8aa2059531 100644 (file)
@@ -30,7 +30,7 @@ namespace Test\Preview;
  */
 class ImageTest extends Provider {
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $fileName = 'testimage.jpg';
index 576eea20b8bd438d3aba9e5814a8e52e31fa69e1..5e0764a8ed750526b9b0ffeef5d05d4e60c8644e 100644 (file)
@@ -30,7 +30,7 @@ namespace Test\Preview;
  */
 class MP3Test extends Provider {
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $fileName = 'testimage.mp3';
index 0c174a40ca62f3d70ed356e8bf82e78b18a423af..7437ff3567a64fc1f3fc5f470af37665c9a27d3f 100644 (file)
@@ -30,7 +30,7 @@ namespace Test\Preview;
  */
 class MovieTest extends Provider {
 
-       public function setUp() {
+       public function setUp(): void {
                $avconvBinary = \OC_Helper::findBinaryPath('avconv');
                $ffmpegBinary = ($avconvBinary) ? null : \OC_Helper::findBinaryPath('ffmpeg');
 
index 15d66352c185152852de5d96da12e3a8c954340d..62981f2f003f4c1cac6f89ae4cfa5e1a825342cd 100644 (file)
@@ -30,7 +30,7 @@ namespace Test\Preview;
  */
 class OfficeTest extends Provider {
 
-       public function setUp() {
+       public function setUp(): void {
                $libreofficeBinary = \OC_Helper::findBinaryPath('libreoffice');
                $openofficeBinary = ($libreofficeBinary) ? null : \OC_Helper::findBinaryPath('openoffice');
 
index 2050b3f56b489ffbd586ffe8c727149e9ecf67d8..761f6b7f83f114e267bccd87b512a0171a80fa7b 100644 (file)
@@ -46,7 +46,7 @@ abstract class Provider extends \Test\TestCase {
        /** @var \OC\Files\Storage\Storage */
        protected $storage;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $userManager = \OC::$server->getUserManager();
@@ -68,7 +68,7 @@ abstract class Provider extends \Test\TestCase {
                $this->userId = $userId;
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $this->logout();
 
                parent::tearDown();
index 39bf3f1dfc9eb84760c44934746496421edd786a..ccfeede75e68586baa8bc0c522037391d6faded6 100644 (file)
@@ -30,7 +30,7 @@ namespace Test\Preview;
  */
 class SVGTest extends Provider {
 
-       public function setUp() {
+       public function setUp(): void {
                $checkImagick = new \Imagick();
                if (count($checkImagick->queryFormats('SVG')) === 1) {
                        parent::setUp();
index dfa0b920e1659b4076a3afca0b547cf0a34a5f64..f2cdb72cdd19d3fa99c948f97c17e609e988c18a 100644 (file)
@@ -30,7 +30,7 @@ namespace Test\Preview;
  */
 class TXTTest extends Provider {
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $fileName = 'lorem-big.txt';
index 5bdc0c21a9ccf019461dd1dd1ab00959adc6367a..af0b570c091f6749931aeb8db1d2c3c55eb95fdc 100644 (file)
@@ -35,7 +35,7 @@ class OCSTest extends TestCase {
        /** @var IInstanceFactory */
        private $instanceFactory;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->instanceFactory = new InstanceFactory(new ArrayCache(), $this->getClientService());
index 9fc4cfc017797c098a64885691e89af0d071be8e..7253228f2313393b49a88e6088f640fedff07d08 100644 (file)
@@ -34,7 +34,7 @@ class InstanceTest extends TestCase {
        /** @var ICache */
        private $cache;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->cache = new ArrayCache();
index 58fc6af6efb4ba50bf7959931b832d30f1cee017..5ff13beba76e9bfd327c2c0e0e48d67194389067 100644 (file)
@@ -35,7 +35,7 @@ class CleanTagsTest extends \Test\TestCase {
        /** @var IOutput */
        private $outputMock;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->outputMock = $this->getMockBuilder('\OCP\Migration\IOutput')
@@ -51,7 +51,7 @@ class CleanTagsTest extends \Test\TestCase {
                $this->cleanUpTables();
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $this->cleanUpTables();
 
                parent::tearDown();
index 7c3a54cf1db6fb0ee1bd3f25e1ac1a88d80d767f..ea33d331c4d61fa3005552705a72235a922fb07a 100644 (file)
@@ -45,7 +45,7 @@ class ClearFrontendCachesTest extends \Test\TestCase {
        /** @var IOutput */
        private $outputMock;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->outputMock = $this->createMock(IOutput::class);
index e52fcbe7c21d10a3400a6fb786cb079b2a88e501..218a59caa3b83106307843897ce2bb05b878c8ac 100644 (file)
@@ -42,7 +42,7 @@ class ClearGeneratedAvatarCacheTest extends \Test\TestCase {
        /** @var ClearGeneratedAvatarCache */
        protected $repair;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->outputMock    = $this->createMock(IOutput::class);
index fe1b75cac9befd98311092d66cc7676acb0c2bc8..891f7d600e561a6cb3e277feed94a07696ac5faa 100644 (file)
@@ -43,7 +43,7 @@ class FixMountStoragesTest extends TestCase {
        /** @var FixMountStorages */
        private $repair;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->db = \OC::$server->getDatabaseConnection();
index cc04a80eef9e103d1cfb20f2d2e070b820f74e44..331a86d01d097d2ae3ebf02835c8a64f79d60a15 100644 (file)
@@ -30,7 +30,7 @@ class OldGroupMembershipSharesTest extends \Test\TestCase {
        /** @var \OCP\IGroupManager|\PHPUnit_Framework_MockObject_MockObject */
        protected $groupManager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                /** \OCP\IGroupManager|\PHPUnit_Framework_MockObject_MockObject */
@@ -42,7 +42,7 @@ class OldGroupMembershipSharesTest extends \Test\TestCase {
                $this->deleteAllShares();
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $this->deleteAllShares();
 
                parent::tearDown();
index d84f689cc5272497ebf7e9f49bdadf73e5b9a2a7..62471fbbe3a9edf0c4593a87f3200f1e929b6944 100644 (file)
@@ -58,7 +58,7 @@ class RepairCollationTest extends TestCase {
        /** @var ILogger */
        private $logger;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->connection = \OC::$server->getDatabaseConnection();
@@ -75,7 +75,7 @@ class RepairCollationTest extends TestCase {
                $this->repair = new TestCollationRepair($this->config, $this->logger, $this->connection, false);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $this->connection->getSchemaManager()->dropTable($this->tableName);
                parent::tearDown();
        }
index f28d6807d6a3486fd42670f4387fdcfac068e778..1baaf89e0a02efaf49581a653487d55288845f8b 100644 (file)
@@ -31,7 +31,7 @@ class RepairInvalidSharesTest extends TestCase {
        /** @var \OCP\IDBConnection */
        private $connection;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $config = $this->getMockBuilder(IConfig::class)
@@ -49,7 +49,7 @@ class RepairInvalidSharesTest extends TestCase {
                $this->repair = new RepairInvalidShares($config, $this->connection);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $this->deleteAllShares();
 
                parent::tearDown();
index 6579c3213c465cee1c6d9610d09e0b4f22e49a56..013e170cc9df951d598b91f7e09ea8020b5cfb96 100644 (file)
@@ -33,7 +33,7 @@ class RepairMimeTypesTest extends \Test\TestCase {
        /** @var IMimeTypeLoader */
        private $mimetypeLoader;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->savedMimetypeLoader = \OC::$server->getMimeTypeLoader();
@@ -53,7 +53,7 @@ class RepairMimeTypesTest extends \Test\TestCase {
                $this->repair = new \OC\Repair\RepairMimeTypes($config);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $this->storage->getCache()->clear();
 
                $qb = \OC::$server->getDatabaseConnection()->getQueryBuilder();
index 22186283779fa7810e8a8c172c6fb549741162a5..c7008179a0dc2147cfcded665dfa38c4e6739799 100644 (file)
@@ -36,7 +36,7 @@ class RepairSqliteAutoincrementTest extends \Test\TestCase {
         */
        private $config;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->connection = \OC::$server->getDatabaseConnection();
@@ -52,7 +52,7 @@ class RepairSqliteAutoincrementTest extends \Test\TestCase {
                $this->repair = new \OC\Repair\SqliteAutoincrement($this->connection);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $this->connection->getSchemaManager()->dropTable($this->tableName);
                parent::tearDown();
        }
index 1ec28de87687ea2702f7042ab960ad8bb396e957..53b743cf13cd84c2687fa0fd79c3532182ad1e7f 100644 (file)
@@ -39,7 +39,7 @@ class RepairTest extends TestCase {
        /** @var string[] */
        private $outputArray;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $dispatcher = new EventDispatcher();
                $this->repair = new \OC\Repair([], $dispatcher);
index e9b998c7bc85cb068578654b7d1ee5fd147b07eb..001d99836171318c22dd063e2d9a2573d93b2e89 100644 (file)
@@ -36,7 +36,7 @@ class CapabilitiesTest extends TestCase {
        /** @var Throttler|\PHPUnit_Framework_MockObject_MockObject */
        private $throttler;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->request = $this->createMock(IRequest::class);
index e68ae70e152e9204f918b96d0c7a816bb4ded317..7fbcd763ce6b2704c33a3b6101a43016b0906795 100644 (file)
@@ -44,7 +44,7 @@ class ThrottlerTest extends TestCase {
        /** @var IConfig|\PHPUnit_Framework_MockObject_MockObject */
        private $config;
 
-       public function setUp() {
+       public function setUp(): void {
                $this->dbConnection = $this->createMock(IDBConnection::class);
                $this->logger = $this->createMock(ILogger::class);
                $this->config = $this->createMock(IConfig::class);
index 7ee7350c661fdc040ff042633b6dc5f2d057018d..e96111a06df80dc1bec7abf7833fb3606f75df9e 100644 (file)
@@ -37,7 +37,7 @@ class ContentSecurityPolicyManagerTest extends TestCase {
        /** @var ContentSecurityPolicyManager */
        private $contentSecurityPolicyManager;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->dispatcher = \OC::$server->query(IEventDispatcher::class);
                $this->contentSecurityPolicyManager = new ContentSecurityPolicyManager($this->dispatcher);
index 705a0b22db88d73fd348ffbd6c438f15b337ca5f..cb2a8f0d93156fcac0e1717a7b2623f5cf9bf3a4 100644 (file)
@@ -35,7 +35,7 @@ class ContentSecurityPolicyNonceManagerTest extends TestCase  {
        /** @var ContentSecurityPolicyNonceManager */
        private $nonceManager;
 
-       public function setUp() {
+       public function setUp(): void {
                $this->csrfTokenManager = $this->createMock(CsrfTokenManager::class);
                $this->request = $this->createMock(Request::class);
                $this->nonceManager = new ContentSecurityPolicyNonceManager(
index 424f620b619531e9d5bc7f120ff2b79c7479e4cc..314902fb725636107cc90c5d289961602cc3ff15 100644 (file)
@@ -27,7 +27,7 @@ class CsrfTokenGeneratorTest extends \Test\TestCase {
        /** @var \OC\Security\CSRF\CsrfTokenGenerator */
        private $csrfTokenGenerator;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->random = $this->getMockBuilder('\OCP\Security\ISecureRandom')
                        ->disableOriginalConstructor()->getMock();
index f9dd8127e5aa96ad8a1e13d76acfd6b9b5319c51..0f9755c22515c739f3dd9a79ed6b4e71dd2ffa8b 100644 (file)
@@ -29,7 +29,7 @@ class CsrfTokenManagerTest extends \Test\TestCase {
        /** @var \OC\Security\CSRF\TokenStorage\SessionStorage */
        private $storageInterface;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->tokenGenerator = $this->getMockBuilder('\OC\Security\CSRF\CsrfTokenGenerator')
                        ->disableOriginalConstructor()->getMock();
index 92a6557f8e36037b7faa1b359e2398991d0a31ef..19b13f76d864ed7d5a12cb09da5e541d63ec5f85 100644 (file)
@@ -29,7 +29,7 @@ class SessionStorageTest extends \Test\TestCase {
        /** @var \OC\Security\CSRF\TokenStorage\SessionStorage */
        private $sessionStorage;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->session = $this->getMockBuilder(ISession::class)
                        ->disableOriginalConstructor()->getMock();
index 04da057a14c2543f3f3d2d98b67ce52a35da4a78..e7d15e65c520958b0496953148a3031860e856c0 100644 (file)
@@ -31,7 +31,7 @@ class CertificateManagerTest extends \Test\TestCase {
        /** @var ISecureRandom */
        private $random;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->username = $this->getUniqueID('', 20);
@@ -62,7 +62,7 @@ class CertificateManagerTest extends \Test\TestCase {
                );
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $user = \OC::$server->getUserManager()->get($this->username);
                if ($user !== null) {
                        $user->delete();
index 21d1dab4ab81fac5ea890a7d782d378b36b9238c..c9d6ea90bd6be7ea0dd502a3ead1108269157111 100644 (file)
@@ -32,7 +32,7 @@ class CertificateTest extends \Test\TestCase {
        /** @var Certificate That contains an expired certificate */
        protected $expiredCertificate;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $goodCertificate = file_get_contents(__DIR__ . '/../../data/certificates/goodCertificate.crt');
index d1cbdcd3366a4422c0290d88df0819897c3940d9..0b93c704b5c1b1761c07e0caf8bfc3f2d6d6a43d 100644 (file)
@@ -38,7 +38,7 @@ class CredentialsManagerTest extends \Test\TestCase {
        /** @var CredentialsManager */
        protected $manager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->crypto = $this->createMock(ICrypto::class);
                $this->dbConnection = $this->getMockBuilder('\OC\DB\Connection')
index ff164cddc9da201197c0b931bc62c52aa57ac1bd..b0032a555fd84a085e46d1e0b6f79d29681372a5 100644 (file)
@@ -24,7 +24,7 @@ class CryptoTest extends \Test\TestCase {
        /** @var Crypto */
        protected $crypto;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->crypto = new Crypto(\OC::$server->getConfig(), \OC::$server->getSecureRandom());
        }
index b4182068b8a947e33cbe3aab5bee70742a2a847a..ec8ffbee77bb946996b57e177bc8364223fee606 100644 (file)
@@ -42,7 +42,7 @@ class FeaturePolicyManagerTest extends TestCase {
        /** @var FeaturePolicyManager */
        private $manager;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->dispatcher = \OC::$server->query(IEventDispatcher::class);
                $this->manager = new FeaturePolicyManager($this->dispatcher);
index c994b68f781310c2ddb7fa25192cfa13d76b09fd..3222b5d098470a9e2295c36c6b93bca2364597fc 100644 (file)
@@ -97,7 +97,7 @@ class HasherTest extends \Test\TestCase {
        /** @var IConfig */
        protected $config;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(IConfig::class);
index bb550bd1b2abd53c5ed1f000889c4de3cb8f4f79..34493df9878fc16166f567a1abb44d4edde7729a 100644 (file)
@@ -30,7 +30,7 @@ class KeyTest extends TestCase {
        /** @var Key */
        private $key;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->key = new Key('public', 'private');
index 2d66845ba8df406d33c277276da499a0810d3356..9e58ac5c00f0392cc98d0c1229438e0e81e1a4e4 100644 (file)
@@ -50,7 +50,7 @@ class ManagerTest extends TestCase  {
        /** @var ILogger|MockObject */
        private $logger;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                /** @var Factory|\PHPUnit_Framework_MockObject_MockObject $factory */
index 114c03348f6e0d0b5a71c59297002a106d08105a..850ae08d4f04ca51f8c8ff4fec3238d87d4068a1 100644 (file)
@@ -89,7 +89,7 @@ gQIDAQAB
        /** @var Signer */
        private $signer;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->key = new Key($this->public, $this->private);
index 098c40ba0e802f51cc6da92576ecf8f7fe4acc67..d117f7d8c708923e7a6be7a710dffaf589bfbf8d 100644 (file)
@@ -37,7 +37,7 @@ class MemoryCacheTest extends TestCase {
        /** @var MemoryCache */
        private $memoryCache;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->cacheFactory = $this->createMock(ICacheFactory::class);
index 5d42104ba829fb47dbb894d83e483bebd90395a1..1e72f8e49604d82c73fe4e8209bce8662ec15999 100644 (file)
@@ -38,7 +38,7 @@ class LimiterTest extends TestCase {
        /** @var Limiter */
        private $limiter;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->timeFactory = $this->createMock(ITimeFactory::class);
index 500e18d0ca6bcc4318b6602ec5a9280637ccfa8c..71839115a3cb306f3d473d782af2dfaf37ee9130 100644 (file)
@@ -35,7 +35,7 @@ class SecureRandomTest extends \Test\TestCase {
        /** @var SecureRandom */
        protected $rng;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->rng = new \OC\Security\SecureRandom();
        }
index 3fe0889b79670c52a1c851f75d881bbbcbd16be7..26158401f795f5430b27116480c03011073e542c 100644 (file)
@@ -18,7 +18,7 @@ class TrustedDomainHelperTest extends \Test\TestCase {
        /** @var IConfig */
        protected $config;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->config = $this->getMockBuilder(IConfig::class)->getMock();
index 604e11ec11e7a77057371d85807b417e0c6f2d3a..54eaa159d1d6900379dc5e656b7ac806ca0ca80b 100644 (file)
@@ -38,7 +38,7 @@ class ServerTest extends \Test\TestCase {
        protected $server;
 
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $config = new \OC\Config(\OC::$configDir);
                $this->server = new \OC\Server('', $config);
index ee6bcbf11c19c5f003f8469178b3c1240d89110d..472856b90d901b723293f3636af0cf3eca5c2976 100644 (file)
@@ -30,7 +30,7 @@ class CryptoSessionDataTest extends Session {
        /** @var \OCP\ISession */
        protected $wrappedSession;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->wrappedSession = new \OC\Session\Memory($this->getUniqueID());
index f34148fb50e45ffad7e641dd4aa4a4e1818afe9d..493d16bfbfb4c8541c85583f3d3506a263068938 100644 (file)
@@ -35,7 +35,7 @@ class CryptoWrappingTest extends TestCase {
        /** @var \OC\Session\CryptoSessionData */
        protected $instance;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->wrappedSession = $this->getMockBuilder(ISession::class)
index d92d7b90e5e2cb7709ed670977f8a5649b8272f1..7b60e0197f49925e2f355231bbd8ebbd4183816f 100644 (file)
@@ -11,7 +11,7 @@ namespace Test\Session;
 
 class MemoryTest extends Session {
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->instance = new \OC\Session\Memory($this->getUniqueID());
        }
index a1ed01b2ec8f4d66022abc20deba782d0dbe53ba..0c947b8d3020132caae5b45702d4a17ff322941b 100644 (file)
@@ -15,7 +15,7 @@ abstract class Session extends \Test\TestCase {
         */
        protected $instance;
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $this->instance->clear();
                parent::tearDown();
        }
index 8d1c9f768e83864ae76ca281f0147c3e06a08521..f82a623b3d57a373f825f96d95fea2fc24597a37 100644 (file)
@@ -51,7 +51,7 @@ class ManagerTest extends TestCase {
        /** @var IServerContainer|\PHPUnit_Framework_MockObject_MockObject */
        private $container;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->logger = $this->createMock(ILogger::class);
index 176a5b19f2980ddc18df9ac08963738d7fd88f58..93c04ce84491a4fa7088797f749f8a812c438a68 100644 (file)
@@ -36,7 +36,7 @@ class SetupTest extends \Test\TestCase {
        /** @var Installer|\PHPUnit_Framework_MockObject_MockObject */
        protected $installer;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(SystemConfig::class);
index 7db58d744d5e0a130788cd2a9cbd0a677ae640aa..af05d0c4bdd1a5f5ce73b01669ed7e468c716c2d 100644 (file)
@@ -67,7 +67,7 @@ class ShareTest extends \Test\TestCase {
        /** @var IUserManager */
        protected $userManager;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->groupManager = \OC::$server->getGroupManager();
@@ -113,7 +113,7 @@ class ShareTest extends \Test\TestCase {
                $this->dateInFuture = date($dateFormat, $now + 20 * 60);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $query = \OC_DB::prepare('DELETE FROM `*PREFIX*share` WHERE `item_type` = ?');
                $query->execute(array('test'));
                \OC::$server->getConfig()->setAppValue('core', 'shareapi_allow_resharing', $this->resharing);
index a9852882fa8b30a32a71a6247f62e793e131c5a8..0f0e77c32072a491f9b2e6d13c379dd84a1b6833 100644 (file)
@@ -73,7 +73,7 @@ class DefaultShareProviderTest extends \Test\TestCase {
        /** @var \PHPUnit_Framework_MockObject_MockObject|IURLGenerator */
        protected $urlGenerator;
 
-       public function setUp() {
+       public function setUp(): void {
                $this->dbConn = \OC::$server->getDatabaseConnection();
                $this->userManager = $this->createMock(IUserManager::class);
                $this->groupManager = $this->createMock(IGroupManager::class);
@@ -100,7 +100,7 @@ class DefaultShareProviderTest extends \Test\TestCase {
                );
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                $this->dbConn->getQueryBuilder()->delete('share')->execute();
                $this->dbConn->getQueryBuilder()->delete('filecache')->execute();
                $this->dbConn->getQueryBuilder()->delete('storages')->execute();
index 057173c4f339590a2cadd77d3aed01b037a1d75d..d761d0117943b6fbcb7cbafec6cd39bc9e115e2b 100644 (file)
@@ -42,7 +42,7 @@ class LegacyHooksTest extends TestCase {
        /** @var Manager */
        private $manager;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->eventDispatcher = new EventDispatcher();
index 3e34a64acf3b6a618ee0d9b13c96bf7d4cd0131b..45e56114472f9602c27dbc13210d90466a2fae2f 100644 (file)
@@ -101,7 +101,7 @@ class ManagerTest extends \Test\TestCase {
        /** @var  \OC_Defaults|MockObject */
        protected $defaults;
 
-       public function setUp() {
+       public function setUp(): void {
 
                $this->logger = $this->createMock(ILogger::class);
                $this->config = $this->createMock(IConfig::class);
index 39141418f353cc81f94d80edbd97ca3fdd5e868f..2562f16e2a4aaa7bbcb3ff4e68478adfb9ac69fe 100644 (file)
@@ -37,7 +37,7 @@ class ShareHelperTest extends TestCase {
        /** @var ShareHelper */
        private $helper;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->manager = $this->createMock(IManager::class);
index 9e5c4970d3bbf60d5a2c599d1d24b4a1d3cb98e5..45975d5996c7f11efcd0bf3391b230e42da55ac6 100644 (file)
@@ -36,7 +36,7 @@ class ShareTest extends \Test\TestCase {
        /** @var \OCP\Share\IShare */
        protected $share;
 
-       public function setUp() {
+       public function setUp(): void {
                $this->rootFolder = $this->createMock(IRootFolder::class);
                $this->userManager = $this->createMock(IUserManager::class);
                $this->share = new \OC\Share20\Share($this->rootFolder, $this->userManager);
index 8b293426e750751cc74dd966de0321531cf95840..67d4bd1eb2b283f451627f14dcd66df5be999c62 100644 (file)
@@ -41,7 +41,7 @@ class SubAdminTest extends \Test\TestCase {
        /** @var \OCP\IGroup[] */
        private $groups;
        
-       public function setup() {
+       public function setUp(): void {
                $this->users = [];
                $this->groups = [];
 
@@ -83,7 +83,7 @@ class SubAdminTest extends \Test\TestCase {
                        ->execute();
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                foreach($this->users as $user) {
                        $user->delete();
                }
index be769e257fcaf30dcbc571828e7e932f8283573d..c45848b61865cf4d6d912f06729500bf799f534b 100644 (file)
@@ -36,7 +36,7 @@ class RegistryTest extends TestCase {
        /** @var Registry */
        private $registry;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->registry = new Registry();
index c9557def0fde29c6c53388f98a70f1c0de5fead1..a2246bf1b1fa392da2679af3b73a5e50e5d44a33 100644 (file)
@@ -32,7 +32,7 @@ class RegistryTest extends TestCase {
        /** @var Registry */
        private $registry;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->registry = new Registry();
index 41c838914c7d1d8d9a006bba5384e589d8382212..2eb52889ab0aaf20d21f89260c6c5936a30c24b1 100644 (file)
@@ -49,7 +49,7 @@ class SystemTagManagerTest extends TestCase {
         */
        private $dispatcher;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->connection = \OC::$server->getDatabaseConnection();
@@ -67,7 +67,7 @@ class SystemTagManagerTest extends TestCase {
                $this->pruneTagsTables();
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                $this->pruneTagsTables();
                parent::tearDown();
        }
index 69cf7e8f816821f0c05f4009005f4f2b4526e4b9..9c0545c241d09a3d8dd47fb1dd7d99781af402ab 100644 (file)
@@ -64,7 +64,7 @@ class SystemTagObjectMapperTest extends TestCase {
         */
        private $tag3;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->connection = \OC::$server->getDatabaseConnection();
@@ -108,7 +108,7 @@ class SystemTagObjectMapperTest extends TestCase {
                $this->tagMapper->assignTags('3', 'anothertype', $this->tag1->getId());
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                $this->pruneTagsTables();
                parent::tearDown();
        }
index 268521bed51b63cea185d45f4fa04fc35a02c410..db0a77f68f0416335050fe4baa1806ec8868b618 100644 (file)
@@ -42,7 +42,7 @@ class TagsTest extends \Test\TestCase {
        /** @var \OCP\ITagManager */
        protected $tagMgr;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                \OC_User::clearBackends();
@@ -65,7 +65,7 @@ class TagsTest extends \Test\TestCase {
 
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $conn = \OC::$server->getDatabaseConnection();
                $conn->executeQuery('DELETE FROM `*PREFIX*vcategory_to_object`');
                $conn->executeQuery('DELETE FROM `*PREFIX*vcategory`');
index c9e069d9d0d3bbf33920a599965a501c9fc01c7f..6262bd5a00a0d948724d1c1978631e57300272df 100644 (file)
@@ -26,7 +26,7 @@ class TempManagerTest extends \Test\TestCase {
 
        protected $baseDir = null;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->baseDir = $this->getManager()->getTempBaseDir() . $this->getUniqueID('/oc_tmp_test');
@@ -35,7 +35,7 @@ class TempManagerTest extends \Test\TestCase {
                }
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                \OC_Helper::rmdirr($this->baseDir);
                $this->baseDir = null;
                parent::tearDown();
index 790d1f44e1b89c0a7585e39b84be724b159c740d..7c9f3585038b09645826c00abc5ec27d8c1605d2 100644 (file)
@@ -54,7 +54,7 @@ class CSSResourceLocatorTest extends \Test\TestCase {
        /** @var ITimeFactory|\PHPUnit_Framework_MockObject_MockObject */
        private $timeFactory;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->logger = $this->createMock(ILogger::class);
index 50b678da6d366e43ac6fc4a87b8fec0789771b28..8e36426393f3ebd3a4960862a6ca6361e4d5e560 100644 (file)
@@ -50,7 +50,7 @@ class IconsCacherTest extends \Test\TestCase {
        /** @var ITimeFactory|\PHPUnit_Framework_MockObject_MockObject */
        private $timeFactory;
 
-       protected function setUp() {
+       protected function setUp(): void {
                $this->logger = $this->createMock(ILogger::class);
                $this->appData = $this->createMock(AppData::class);
                $this->timeFactory = $this->createMock(ITimeFactory::class);
index 51b15b804052b1d1ab6f97b8bfdf930d3f8bf90f..b12124ea5a91883bf192cc0bf4741ddbc2b4bcdd 100644 (file)
@@ -52,7 +52,7 @@ class JSCombinerTest extends \Test\TestCase {
        /** @var ICacheFactory|\PHPUnit_Framework_MockObject_MockObject */
        protected $cacheFactory;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->appData = $this->createMock(IAppData::class);
index 400637ae960196eadcf0d9848da2e436f84e2065..38c5fc0eadd1a323b2f4d86b6e02863fd1029afa 100644 (file)
@@ -43,7 +43,7 @@ class JSResourceLocatorTest extends \Test\TestCase {
        /** @var ILogger|\PHPUnit_Framework_MockObject_MockObject */
        protected $logger;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->appData = $this->createMock(IAppData::class);
index 580dfd60d0ecc38765f07152d5d0c08ad0ee1bd0..90488071b4f098150aae5003246399ac7287a292 100644 (file)
@@ -15,7 +15,7 @@ class ResourceLocatorTest extends \Test\TestCase {
        /** @var \PHPUnit_Framework_MockObject_MockObject */
        protected $logger;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->logger = $this->createMock(ILogger::class);
        }
index 421046b38f301c8dbc3f58bdb7ba60e65ae62df7..6f9fdf1e7fbd030f62f8c4622bb3671d0e2a2d49 100644 (file)
@@ -62,7 +62,7 @@ class SCSSCacherTest extends \Test\TestCase {
        /** @var ITimeFactory|\PHPUnit_Framework_MockObject_MockObject */
        protected $timeFactory;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->logger = $this->createMock(ILogger::class);
                $this->appData = $this->createMock(AppData::class);
index aa3c73d4743164951990d88d9c73d28c7ac9a290..ac73873ce37fd70c50d988b719a1b2333e54df19 100644 (file)
@@ -24,7 +24,7 @@ namespace Test;
 
 class TemplateFunctionsTest extends \Test\TestCase {
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $loader = new \OC\Autoloader([\OC::$SERVERROOT . '/lib']);
index 96ee0f06f8ca673ebb0ffea8875bf022f2cc2c0f..b80e720efd3ebeb6c8e1202c3c91600177827058 100644 (file)
@@ -108,7 +108,7 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase {
                });
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                // overwrite the command bus with one we can run ourselves
                $this->commandBus = new QueueBus();
                $this->overwriteService('AsyncCommandBus', $this->commandBus);
@@ -134,7 +134,7 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase {
                }
        }
 
-       protected function onNotSuccessfulTest(\Throwable $t) {
+       protected function onNotSuccessfulTest(\Throwable $t): void {
                $this->restoreAllServices();
 
                // restore database connection
@@ -147,7 +147,7 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase {
                parent::onNotSuccessfulTest($t);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                $this->restoreAllServices();
 
                // restore database connection
@@ -238,7 +238,7 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase {
                );
        }
 
-       public static function tearDownAfterClass() {
+       public static function tearDownAfterClass(): void {
                if (!self::$wasDatabaseAllowed && self::$realDatabase !== null) {
                        // in case an error is thrown in a test, PHPUnit jumps straight to tearDownAfterClass,
                        // so we need the database again
index 1f389fc82c8a796d9ce63be42b3e13cbf95af74e..ad98ba91212f81a8b0ff9bb425f3d19935d27273 100644 (file)
@@ -23,8 +23,8 @@ trait EncryptionTrait {
        abstract protected function registerStorageWrapper($name, $wrapper);
 
        // from phpunit
-       abstract protected function markTestSkipped($reason = '');
-       abstract protected function assertTrue($condition, $message = '');
+       abstract protected function markTestSkipped(string $message = ''): void;
+       abstract protected function assertTrue($condition, string $message = ''): void;
 
        private $encryptionWasEnabled;
 
index fe25e8cebaff566b48331c2481f2ac54ed420d81..b5aab5be65f07c1f76601d6e1244c14dc60faf5e 100644 (file)
@@ -49,7 +49,7 @@ class ChangesCheckTest extends TestCase {
        /** @var ILogger|\PHPUnit_Framework_MockObject_MockObject */
        protected $logger;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->clientService = $this->createMock(IClientService::class);
index eef16eeb520374b3fb5ad4221dfb1027d59d25f4..911e883e99bd4f03c9fc6b8dce803550cf161222 100644 (file)
@@ -33,7 +33,7 @@ class VersionCheckTest extends \Test\TestCase {
        /** @var VersionCheck | \PHPUnit_Framework_MockObject_MockObject*/
        private $updater;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->config = $this->getMockBuilder(IConfig::class)
                        ->disableOriginalConstructor()
index 47028cf3f18a03d542070231d2c61f90a16a84ca..2df235b3840982ee462a68ef9e66f46b6b4cdf26 100644 (file)
@@ -40,7 +40,7 @@ class UpdaterTest extends TestCase {
        /** @var Installer|\PHPUnit_Framework_MockObject_MockObject */
        private $installer;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->config = $this->getMockBuilder(IConfig::class)
                        ->disableOriginalConstructor()
index 9a8e588a22951394fd86adfa942d68f42eae8b70..0582a7120b8c1cef3275ffa087e98794a4211edf 100644 (file)
@@ -28,7 +28,7 @@ class UrlGeneratorTest extends \Test\TestCase {
        /** @var string */
        private $originalWebRoot;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->config = $this->createMock(IConfig::class);
                $this->cacheFactory = $this->createMock(ICacheFactory::class);
@@ -41,7 +41,7 @@ class UrlGeneratorTest extends \Test\TestCase {
                $this->originalWebRoot = \OC::$WEBROOT;
        }
 
-       public function tearDown() {
+       public function tearDown(): void {
                // Reset webRoot
                \OC::$WEBROOT = $this->originalWebRoot;
        }
index 8e52be50c750f07020e159a69723deb33c0e8a2a..202a8225f941e094c16a47b7debed2aa42238bad 100644 (file)
@@ -47,7 +47,7 @@ class DatabaseTest extends Backend {
                return $user;
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->eventDispatcher = $this->createMock(IEventDispatcher::class);
@@ -55,7 +55,7 @@ class DatabaseTest extends Backend {
                $this->backend=new \OC\User\Database($this->eventDispatcher);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                if(!isset($this->users)) {
                        return;
                }
index 50382aa8fe64642010377a3fcf947cb1495a1851..7eb5cc41ba882e5db8227226279d9887bd415103 100644 (file)
@@ -23,7 +23,7 @@
 namespace Test\User;
 
 class Dummy extends Backend {
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
                $this->backend=new \Test\Util\User\Dummy();
        }
index b99d499b2a85b7554fb269efdf932ffc05c4f945..4d70e30273ad91a2c9741573e8a4a8a0f34d3b03 100644 (file)
@@ -30,7 +30,7 @@ class ManagerTest extends TestCase {
        /** @var EventDispatcherInterface */
        private $dispatcher;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
 
                $this->config = $this->createMock(IConfig::class);
index a37181c504c9fbd1923d34d448aafa479269505b..a9d466e540819790a348e7fdec2e229d2c5e51fd 100644 (file)
@@ -61,7 +61,7 @@ class SessionTest extends \Test\TestCase {
        /** @var IEventDispatcher|MockObject */
        private $dispatcher;
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->timeFactory = $this->createMock(ITimeFactory::class);
index a800e7903703473dfcd537023fbe5abe0bb6bcbf..b4964e282060df400c4a8fa632df4ccb070cde01 100644 (file)
@@ -33,7 +33,7 @@ class UserTest extends TestCase {
        /** @var EventDispatcherInterface|MockObject */
        protected $dispatcher;
 
-       public function setUp() {
+       public function setUp(): void {
                parent::setUp();
                $this->dispatcher = $this->createMock(EventDispatcherInterface::class);
        }
index c597a6b770b59d06ff12d0035d5026fa4201d279..3f956601ce45df3a7fb430324fa33d27946e36c6 100644 (file)
@@ -36,7 +36,7 @@ class UtilCheckServerTest extends \Test\TestCase {
                return $config;
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                $this->datadir = \OC::$server->getTempManager()->getTemporaryFolder();
@@ -45,7 +45,7 @@ class UtilCheckServerTest extends \Test\TestCase {
                \OC::$server->getSession()->set('checkServer_succeeded', false);
        }
 
-       protected function tearDown() {
+       protected function tearDown(): void {
                // clean up
                @unlink($this->datadir . '/.ocdata');
                parent::tearDown();
index d731085af461e3f54d3edbbb770d0a18c50c09b6..a5ddd50ab2790c5b6e8d7e3d5d90ababa019ab17 100644 (file)
@@ -348,13 +348,13 @@ class UtilTest extends \Test\TestCase {
                $this->assertNotEmpty($errors);
        }
 
-       protected function setUp() {
+       protected function setUp(): void {
                parent::setUp();
 
                \OC_Util::$scripts = [];
                \OC_Util::$styles = [];
        }
-       protected function tearDown() {
+       protected function tearDown(): void {
                parent::tearDown();
 
                \OC_Util::$scripts = [];
index b09b571c1c7af63cd747b9e094a49b77db971b58..da786c765f8f0806884de574010a1aa83328b807 100644 (file)
@@ -1,6 +1,5 @@
 <?xml version="1.0" encoding="utf-8" ?>
 <phpunit bootstrap="bootstrap.php"
-                strict="true"
                 verbose="true"
                 backupGlobals="false"
                 timeoutForSmallTests="900"
index 24a72db0065d0e440ad21e69e5c8ee0fe54bcff5..d9d23ee6db86168581d09a628f6a6d7f28456c7b 100644 (file)
@@ -18,7 +18,7 @@ class StartSessionListener implements TestListener {
 
        use TestListenerDefaultImplementation;
 
-       public function endTest(Test $test, $time) {
+       public function endTest(Test $test, float $time): void {
                // reopen the session - only allowed for memory session
                if (\OC::$server->getSession() instanceof Memory) {
                        /** @var $session Memory */