Skip to content

Commit

Permalink
chore: drop usages of deprecated ILogger interface
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
  • Loading branch information
st3iny committed Sep 15, 2024
1 parent f4cc0ba commit 0661186
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 0661186

Please sign in to comment.