diff options
Diffstat (limited to 'apps/files_sharing/tests/TestCase.php')
-rw-r--r-- | apps/files_sharing/tests/TestCase.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_sharing/tests/TestCase.php b/apps/files_sharing/tests/TestCase.php index 6c5f078f9e7..ce5ceb1f642 100644 --- a/apps/files_sharing/tests/TestCase.php +++ b/apps/files_sharing/tests/TestCase.php @@ -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(); } |