Skip to content

Commit ed1e701

Browse files
committed
[BUGFIX] Fix tests
1 parent 479f8d4 commit ed1e701

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/Unit/Entity/BrandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function instanceReturnsEmptyStringAsLogoPublicUrlPrefixedWithConfiguredM
101101
public function instanceReturnsLogoPublicUrlPrefixedWithConfiguredMySkillDisplayUrl()
102102
{
103103
$settings = $this->prophesize(Settings::class);
104-
$settings->getMySkillDisplayUrl()->willReturn('https://example.com');
104+
$settings->getAPIUrl()->willReturn('https://example.com');
105105
$subject = Brand::createFromJson('{"logoPublicUrl":"fileadmin/SkillSets/Images/TYPO3/TCCD_10LTS.jpg"}', $settings->reveal());
106106
static::assertSame('https://example.com/fileadmin/SkillSets/Images/TYPO3/TCCD_10LTS.jpg', $subject->getLogoPublicUrl());
107107
}

tests/Unit/Entity/SkillSetTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function instanceReturnsEmptyStringAsMediaPublicUrlPrefixedWithConfigured
112112
public function instanceReturnsMediaPublicUrlPrefixedWithConfiguredMySkillDisplayUrl()
113113
{
114114
$settings = $this->prophesize(Settings::class);
115-
$settings->getMySkillDisplayUrl()->willReturn('https://example.com');
115+
$settings->getAPIUrl()->willReturn('https://example.com');
116116
$subject = SkillSet::createFromJson('{"mediaPublicUrl":"fileadmin/SkillSets/Images/TYPO3/TCCD_10LTS.jpg"}', $settings->reveal());
117117
static::assertSame('https://example.com/fileadmin/SkillSets/Images/TYPO3/TCCD_10LTS.jpg', $subject->getMediaPublicUrl());
118118
}

0 commit comments

Comments
 (0)