Skip to content

Commit

Permalink
test: remove failing test for private method
Browse files Browse the repository at this point in the history
Signed-off-by: ernolf <[email protected]>
  • Loading branch information
ernolf committed Aug 2, 2024
1 parent a4a06a2 commit e3b4ee9
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions tests/Unit/Controller/SettingsControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,23 +148,4 @@ public function testEnableInvalidState() {
$this->expectException(InvalidArgumentException::class);
$this->controller->enable(17);
}

public function testGetFaviconUrl() {
$baseUrl = 'https://example.com/';
$subPath = 'path/to/favicon.ico';

$this->urlGenerator->expects($this->once())
->method('getBaseUrl')
->willReturn($baseUrl);

$this->urlGenerator->expects($this->once())
->method('linkToRoute')
->with('theming.Icon.getFavicon', ['app' => 'core'])
->willReturn($subPath);

$result = $this->controller->getFaviconUrl();

$expectedUrl = $baseUrl . $subPath;
$this->assertEquals($expectedUrl, $result);
}
}

0 comments on commit e3b4ee9

Please sign in to comment.