1
0
Fork 0

Adapt tests to use new BaseURL UriInterface

This commit is contained in:
Philipp Holzer 2023-02-18 20:49:51 +01:00
commit 9e6d95284b
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
7 changed files with 15 additions and 22 deletions

View file

@ -32,7 +32,7 @@ class SystemTest extends TestCase
private function useBaseUrl()
{
$baseUrl = \Mockery::mock(BaseURL::class);
$baseUrl->shouldReceive('getHostname')->andReturn('friendica.local')->once();
$baseUrl->shouldReceive('getHost')->andReturn('friendica.local')->once();
$dice = \Mockery::mock(Dice::class);
$dice->shouldReceive('create')->with(BaseURL::class)->andReturn($baseUrl);