diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-06-28 19:59:04 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-06-28 19:59:04 +0200 |
commit | a0d83771094df4d3a7d27ee72b9abb4a6854b604 (patch) | |
tree | 0f8ded5ca8b8a08b846e149d04f4c06965e83edb /tests/lib/streamwrappers.php | |
parent | dc0ebe90077caeb67346ab96950f7305737a9de6 (diff) | |
download | nextcloud-server-a0d83771094df4d3a7d27ee72b9abb4a6854b604.tar.gz nextcloud-server-a0d83771094df4d3a7d27ee72b9abb4a6854b604.zip |
better unit tests for static stream wrapper
Diffstat (limited to 'tests/lib/streamwrappers.php')
-rw-r--r-- | tests/lib/streamwrappers.php | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/lib/streamwrappers.php b/tests/lib/streamwrappers.php index c7e51ccfa48..d15b712139d 100644 --- a/tests/lib/streamwrappers.php +++ b/tests/lib/streamwrappers.php @@ -33,18 +33,6 @@ class Test_StreamWrappers extends PHPUnit_Framework_TestCase { $this->assertEquals(count($items), count($result)); } - public function testStaticStream() { - $sourceFile = OC::$SERVERROOT . '/tests/data/lorem.txt'; - $staticFile = 'static://test'; - $this->assertFalse(file_exists($staticFile)); - file_put_contents($staticFile, file_get_contents($sourceFile)); - $this->assertTrue(file_exists($staticFile)); - $this->assertEquals(file_get_contents($sourceFile), file_get_contents($staticFile)); - unlink($staticFile); - clearstatcache(); - $this->assertFalse(file_exists($staticFile)); - } - public function testCloseStream() { //ensure all basic stream stuff works $sourceFile = OC::$SERVERROOT . '/tests/data/lorem.txt'; |