mirror of
https://github.com/SkillDisplay/PHPToolKit.git
synced 2024-11-17 06:06:08 +01:00
[BUGFIX] Fix tests
This commit is contained in:
parent
479f8d420c
commit
ed1e70100f
2 changed files with 2 additions and 2 deletions
|
@ -101,7 +101,7 @@ class BrandTest extends TestCase
|
||||||
public function instanceReturnsLogoPublicUrlPrefixedWithConfiguredMySkillDisplayUrl()
|
public function instanceReturnsLogoPublicUrlPrefixedWithConfiguredMySkillDisplayUrl()
|
||||||
{
|
{
|
||||||
$settings = $this->prophesize(Settings::class);
|
$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());
|
$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());
|
static::assertSame('https://example.com/fileadmin/SkillSets/Images/TYPO3/TCCD_10LTS.jpg', $subject->getLogoPublicUrl());
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,7 +112,7 @@ class SkillSetTest extends TestCase
|
||||||
public function instanceReturnsMediaPublicUrlPrefixedWithConfiguredMySkillDisplayUrl()
|
public function instanceReturnsMediaPublicUrlPrefixedWithConfiguredMySkillDisplayUrl()
|
||||||
{
|
{
|
||||||
$settings = $this->prophesize(Settings::class);
|
$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());
|
$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());
|
static::assertSame('https://example.com/fileadmin/SkillSets/Images/TYPO3/TCCD_10LTS.jpg', $subject->getMediaPublicUrl());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue