public function testIsSubNode() { $file = new Node(null, null, '/foo/bar'); $folder = new \OC\Files\Node\Folder(null, null, '/foo'); $this->assertTrue($folder->isSubNode($file)); $this->assertFalse($folder->isSubNode($folder)); $file = new Node(null, null, '/foobar'); $this->assertFalse($folder->isSubNode($file)); }