use different files route/controller
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
522b053466
commit
006da9afd7
2 changed files with 2 additions and 13 deletions
|
@ -102,13 +102,9 @@ class Notifications extends Controller {
|
|||
return new NotFoundResponse();
|
||||
}
|
||||
|
||||
$dir = $this->folder->getRelativePath($files[0]->getParent()->getPath());
|
||||
$url = $this->urlGenerator->linkToRouteAbsolute(
|
||||
'files.view.index',
|
||||
[
|
||||
'dir' => $dir,
|
||||
'scrollto' => $files[0]->getName()
|
||||
]
|
||||
'files.viewcontroller.showFile',
|
||||
[ 'fileid' => $comment->getObjectId() ]
|
||||
);
|
||||
|
||||
$this->markProcessed($comment);
|
||||
|
|
|
@ -72,9 +72,6 @@ class NotificationsTest extends TestCase {
|
|||
->will($this->returnValue($comment));
|
||||
|
||||
$file = $this->getMockBuilder('\OCP\Files\Node')->getMock();
|
||||
$file->expects($this->once())
|
||||
->method('getParent')
|
||||
->will($this->returnValue($this->getMockBuilder('\OCP\Files\Folder')->getMock()));
|
||||
|
||||
$this->folder->expects($this->once())
|
||||
->method('getById')
|
||||
|
@ -106,10 +103,6 @@ class NotificationsTest extends TestCase {
|
|||
->with('42')
|
||||
->will($this->throwException(new NotFoundException()));
|
||||
|
||||
$file = $this->getMockBuilder('\OCP\Files\Node')->getMock();
|
||||
$file->expects($this->never())
|
||||
->method('getParent');
|
||||
|
||||
$this->folder->expects($this->never())
|
||||
->method('getById');
|
||||
|
||||
|
|
Loading…
Reference in a new issue