summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-03-26 15:34:24 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-03-26 15:34:24 +0100
commite66dda83df536e7bac14d5e5622f10747db63f2f (patch)
tree180c19453b685c2c7e591c8e6b856b49f6e2eee2 /tests
parent0d786c381b8d4656e6bbcb5ef2b33e718ea639eb (diff)
parenta84ade5f325b190ce14f5817590f3180ecabc33e (diff)
downloadnextcloud-server-e66dda83df536e7bac14d5e5622f10747db63f2f.tar.gz
nextcloud-server-e66dda83df536e7bac14d5e5622f10747db63f2f.zip
Merge pull request #15218 from owncloud/revert-oc-etag-master
Revert oc etag master
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/connector/sabre/filesplugin.php31
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/lib/connector/sabre/filesplugin.php b/tests/lib/connector/sabre/filesplugin.php
index e10d67a3255..54d43d66dda 100644
--- a/tests/lib/connector/sabre/filesplugin.php
+++ b/tests/lib/connector/sabre/filesplugin.php
@@ -171,35 +171,4 @@ class FilesPlugin extends \Test\TestCase {
$this->assertEquals(200, $result[self::GETETAG_PROPERTYNAME]);
}
- /**
- * @dataProvider providesETagTestData
- * @param $expectedETag
- * @param $isChunked
- * @param $isChunkComplete
- */
- public function testETag($expectedETag, $isChunked, $isChunkComplete) {
- if (!is_null($isChunked)) {
- $_SERVER['HTTP_OC_CHUNKED'] = $isChunked;
- }
- if (!is_null($isChunkComplete)) {
- $_SERVER['X-CHUNKING_COMPLETE'] = $isChunkComplete;
- }
- $node = $this->createTestNode('\OC\Connector\Sabre\File');
-
- $etag = $this->plugin->getETag($node);
-
- $this->assertEquals($expectedETag, $etag);
- }
-
- public function providesETagTestData() {
- return [
- // non-chunked tests
- ['"abc"', null, null],
- ['"abc"', null, false],
-
- // chunked tests
- [null, true, null],
- ['"abc"', true, true],
- ];
- }
}