The way to register dir for the FakeDirStream has changed recently, you should now use

```php
\OC\Files\Stream\Dir::register($id,$content);
```