Files
breadcrumb-the-shire/tests/Service/Branding/BrandingServicesFactoryTest.php
2026-02-23 12:58:19 +01:00

23 lines
863 B
PHP

<?php
namespace MintyPHP\Tests\Service\Branding;
use MintyPHP\Service\Branding\BrandingFaviconService;
use MintyPHP\Service\Branding\BrandingLogoService;
use MintyPHP\Service\Branding\BrandingServicesFactory;
use PHPUnit\Framework\TestCase;
class BrandingServicesFactoryTest extends TestCase
{
public function testFactoryReturnsStableInstancesPerFactoryObject(): void
{
$factory = new BrandingServicesFactory();
$this->assertInstanceOf(BrandingLogoService::class, $factory->createBrandingLogoService());
$this->assertSame($factory->createBrandingLogoService(), $factory->createBrandingLogoService());
$this->assertInstanceOf(BrandingFaviconService::class, $factory->createBrandingFaviconService());
$this->assertSame($factory->createBrandingFaviconService(), $factory->createBrandingFaviconService());
}
}