diff --git a/library/PostObject/Icon/Icon.php b/library/PostObject/Icon/Icon.php index c7b6ce020..1e6973177 100644 --- a/library/PostObject/Icon/Icon.php +++ b/library/PostObject/Icon/Icon.php @@ -12,7 +12,7 @@ class Icon implements IconInterface */ public function getSize(): string { - return false; + return 'md'; } /** @@ -60,7 +60,7 @@ public function getComponentElement(): string */ public function getFilled(): bool { - return true; + return false; } /** diff --git a/library/PostObject/Icon/Resolvers/TermIconResolver.php b/library/PostObject/Icon/Resolvers/TermIconResolver.php index ba3551add..d13d8bd71 100644 --- a/library/PostObject/Icon/Resolvers/TermIconResolver.php +++ b/library/PostObject/Icon/Resolvers/TermIconResolver.php @@ -67,7 +67,7 @@ public function getIcon(): string return $this->icon['src']; } - public function getColor(): string + public function getCustomColor(): string { return $this->color ?? ''; } diff --git a/library/PostObject/Icon/Resolvers/TermconResolver.test.php b/library/PostObject/Icon/Resolvers/TermconResolver.test.php index b485e50a5..3017ede7d 100644 --- a/library/PostObject/Icon/Resolvers/TermconResolver.test.php +++ b/library/PostObject/Icon/Resolvers/TermconResolver.test.php @@ -115,7 +115,7 @@ public function testResolveReturnsIconInterfaceWithCorrectValues() $icon = $resolver->resolve(); $this->assertEquals('testIcon', $icon->getIcon()); - $this->assertEquals('testColor', $icon->getColor()); + $this->assertEquals('testColor', $icon->getCustomColor()); } private function getTermHelper(array $returnValues = []): GetTermIcon&GetTermColor