Adapt tests to use new BaseURL UriInterface

This commit is contained in:
Philipp
2023-02-18 20:49:51 +01:00
parent 402d45d490
commit 9e6d95284b
7 changed files with 15 additions and 22 deletions

View File

@@ -68,8 +68,8 @@ class EMailerTest extends MockedTest
$this->pConfig = \Mockery::mock(IManagePersonalConfigValues::class);
$this->l10n = \Mockery::mock(L10n::class);
$this->baseUrl = \Mockery::mock(BaseURL::class);
$this->baseUrl->shouldReceive('getHostname')->andReturn('friendica.local');
$this->baseUrl->shouldReceive('get')->andReturn('http://friendica.local');
$this->baseUrl->shouldReceive('getHost')->andReturn('friendica.local');
$this->baseUrl->shouldReceive('__toString')->andReturn('http://friendica.local');
}
protected function tearDown(): void