diff --git a/tests/lib/files/view.php b/tests/lib/files/view.php
index 682f3bb52af1730febe24bc3ec006314c84a7e6e..f80dd06e1cb6a097c7c3aace88ce3e105cd0b7f4 100644
--- a/tests/lib/files/view.php
+++ b/tests/lib/files/view.php
@@ -393,8 +393,6 @@ class View extends \PHPUnit_Framework_TestCase {
 		$rootView->file_put_contents('/foo.txt', 'asd');
 		$this->assertNull($this->hookPath);
 
-		$this->hookWritePath = $this->hookUpdatePath = $this->hookCreatePath = null;
-
 		$subView->file_put_contents('/foo.txt', 'asd');
 		$this->assertEquals('/substorage/foo.txt', $this->hookPath);
 	}