From ed1e70100f1cff2d9f2dbd0c39c44cef9052b3f8 Mon Sep 17 00:00:00 2001 From: Markus Klein Date: Fri, 19 Feb 2021 15:58:02 +0100 Subject: [PATCH] [BUGFIX] Fix tests --- tests/Unit/Entity/BrandTest.php | 2 +- tests/Unit/Entity/SkillSetTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Unit/Entity/BrandTest.php b/tests/Unit/Entity/BrandTest.php index 2ff442b..429e0fb 100644 --- a/tests/Unit/Entity/BrandTest.php +++ b/tests/Unit/Entity/BrandTest.php @@ -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()); } diff --git a/tests/Unit/Entity/SkillSetTest.php b/tests/Unit/Entity/SkillSetTest.php index 9a82035..10abed1 100644 --- a/tests/Unit/Entity/SkillSetTest.php +++ b/tests/Unit/Entity/SkillSetTest.php @@ -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()); }