diff options
Diffstat (limited to 'apps')
3 files changed, 7 insertions, 1 deletions
diff --git a/apps/dav/tests/unit/Connector/Sabre/FileTest.php b/apps/dav/tests/unit/Connector/Sabre/FileTest.php index 999326463a1..31344b36463 100644 --- a/apps/dav/tests/unit/Connector/Sabre/FileTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/FileTest.php @@ -48,6 +48,9 @@ class FileTest extends \Test\TestCase { public function setUp() { parent::setUp(); + unset($_SERVER['HTTP_OC_CHUNKED']); + unset($_SERVER['CONTENT_LENGTH']); + unset($_SERVER['REQUEST_METHOD']); \OC_Hook::clear(); diff --git a/apps/dav/tests/unit/Connector/Sabre/RequestTest/RequestTest.php b/apps/dav/tests/unit/Connector/Sabre/RequestTest/RequestTest.php index 8b06678407b..10cd73baf63 100644 --- a/apps/dav/tests/unit/Connector/Sabre/RequestTest/RequestTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/RequestTest/RequestTest.php @@ -57,6 +57,8 @@ abstract class RequestTest extends TestCase { protected function setUp() { parent::setUp(); + unset($_SERVER['HTTP_OC_CHUNKED']); + $this->serverFactory = new ServerFactory( \OC::$server->getConfig(), \OC::$server->getLogger(), diff --git a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php index 97774081b6a..726c4bde315 100644 --- a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php +++ b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php @@ -38,6 +38,7 @@ use OCP\Files\IRootFolder; use OCP\Lock\LockedException; use OCP\Share\IManager; use OCP\Share; +use Test\TestCase; /** * Class ShareAPIControllerTest @@ -45,7 +46,7 @@ use OCP\Share; * @package OCA\Files_Sharing\Tests\Controller * @group DB */ -class ShareAPIControllerTest extends \Test\TestCase { +class ShareAPIControllerTest extends TestCase { /** @var string */ private $appName = 'files_sharing'; |