23 lines
863 B
PHP
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());
|
|
}
|
|
}
|