Fix test mocking
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
72a7fe8185
commit
9eb7a31864
1 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@ use OC\L10N\L10N;
|
|||
use OCA\WorkflowEngine\Entity\File;
|
||||
use OCA\WorkflowEngine\Helper\ScopeContext;
|
||||
use OCA\WorkflowEngine\Manager;
|
||||
use OCP\Files\IRootFolder;
|
||||
use OCP\IDBConnection;
|
||||
use OCP\IL10N;
|
||||
use OCP\ILogger;
|
||||
|
@ -276,7 +277,7 @@ class ManagerTest extends TestCase {
|
|||
return $this->createMock(IOperation::class);
|
||||
} else if($class === File::class) {
|
||||
return $this->getMockBuilder(File::class)
|
||||
->setConstructorArgs([$this->createMock(L10N::class), $this->createMock(IURLGenerator::class)])
|
||||
->setConstructorArgs([$this->createMock(L10N::class), $this->createMock(IURLGenerator::class), $this->createMock(IRootFolder::class)])
|
||||
->setMethodsExcept(['getEvents'])
|
||||
->getMock();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue