public function testRenameDirectory()
 {
     $path = '/the-old-name';
     $newName = '/the-new-name';
     $this->setupDbMultiCall([['method' => 'fetch', 'response' => ['path_id' => 123, 'path' => $path, 'type' => 'dir', 'update_ts' => date('Y-m-d H:i:s')]], ['method' => 'fetchAll', 'response' => [['path_id' => 1234, 'path' => $path . '/somefile.txt', 'type' => 'file', 'visibility' => 'public', 'size' => 2341, 'update_ts' => date('Y-m-d H:i:s'), 'mimetype' => 'text/plain']]]]);
     $meta = $this->adapter->rename($path, $newName);
     $this->assertEquals($newName, $meta['path']);
 }