Skip to content

Commit

Permalink
Merge pull request #1790 from nextcloud/chore/obsolete-ilogger
Browse files Browse the repository at this point in the history
chore: drop usages of deprecated ILogger interface
  • Loading branch information
st3iny authored Sep 16, 2024
2 parents f4cc0ba + 0661186 commit fc56765
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/Controller/ActivitiesControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
use OCP\EventDispatcher\IEventDispatcher;
use OCP\IConfig;
use OCP\IL10N;
use OCP\ILogger;
use OCP\IRequest;
use OCP\IURLGenerator;
use OCP\Template;
Expand Down Expand Up @@ -131,9 +130,7 @@ public function testShowList(): void {
$templateResponse = $this->controller->showList();
$this->assertInstanceOf(TemplateResponse::class, $templateResponse, 'Asserting type of return is \OCP\AppFramework\Http\TemplateResponse');

$this->overwriteService(ILogger::class, $this->createMock(ILogger::class));
$renderedResponse = $templateResponse->render();
$this->restoreService(ILogger::class);
$this->assertNotEmpty($renderedResponse);
}
}

0 comments on commit fc56765

Please sign in to comment.