[BUGFIX] Fix tests

This commit is contained in:
Markus Klein 2021-02-19 15:58:02 +01:00
parent 479f8d420c
commit ed1e70100f
2 changed files with 2 additions and 2 deletions

View file

@ -101,7 +101,7 @@ class BrandTest extends TestCase
public function instanceReturnsLogoPublicUrlPrefixedWithConfiguredMySkillDisplayUrl()
{
$settings = $this->prophesize(Settings::class);
$settings->getMySkillDisplayUrl()->willReturn('https://example.com');
$settings->getAPIUrl()->willReturn('https://example.com');
$subject = Brand::createFromJson('{"logoPublicUrl":"fileadmin/SkillSets/Images/TYPO3/TCCD_10LTS.jpg"}', $settings->reveal());
static::assertSame('https://example.com/fileadmin/SkillSets/Images/TYPO3/TCCD_10LTS.jpg', $subject->getLogoPublicUrl());
}

View file

@ -112,7 +112,7 @@ class SkillSetTest extends TestCase
public function instanceReturnsMediaPublicUrlPrefixedWithConfiguredMySkillDisplayUrl()
{
$settings = $this->prophesize(Settings::class);
$settings->getMySkillDisplayUrl()->willReturn('https://example.com');
$settings->getAPIUrl()->willReturn('https://example.com');
$subject = SkillSet::createFromJson('{"mediaPublicUrl":"fileadmin/SkillSets/Images/TYPO3/TCCD_10LTS.jpg"}', $settings->reveal());
static::assertSame('https://example.com/fileadmin/SkillSets/Images/TYPO3/TCCD_10LTS.jpg', $subject->getMediaPublicUrl());
}