Skip to content

Commit

Permalink
fixup! Add new LoadAdditionalScriptsEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
rullzer committed Sep 9, 2019
1 parent 9f31f14 commit d314963
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class LegacyLoadAdditionalScriptsAdapter implements IEventListener {
/** @var IEventDispatcher */
private $dispatcher;

public function __construct(IEventDispatcher $legacyDispatcher) {
$this->dispatcher = $legacyDispatcher;
public function __construct(IEventDispatcher $dispatcher) {
$this->dispatcher = $dispatcher;
}

public function handle(Event $event): void {
Expand Down
3 changes: 2 additions & 1 deletion apps/files/tests/Controller/ViewControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
use OCA\Files\Activity\Helper;
use OCA\Files\Controller\ViewController;
use OCP\AppFramework\Http;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Files\File;
use OCP\Files\Folder;
use OCP\Files\IRootFolder;
Expand Down Expand Up @@ -81,7 +82,7 @@ public function setUp() {
$this->urlGenerator = $this->getMockBuilder(IURLGenerator::class)->getMock();
$this->l10n = $this->getMockBuilder(IL10N::class)->getMock();
$this->config = $this->getMockBuilder(IConfig::class)->getMock();
$this->eventDispatcher = $this->getMockBuilder('\Symfony\Component\EventDispatcher\EventDispatcherInterface')->getMock();
$this->eventDispatcher = $this->createMock(IEventDispatcher::class);
$this->userSession = $this->getMockBuilder(IUserSession::class)->getMock();
$this->appManager = $this->getMockBuilder('\OCP\App\IAppManager')->getMock();
$this->user = $this->getMockBuilder(IUser::class)->getMock();
Expand Down

0 comments on commit d314963

Please sign in to comment.