infinito/application/symfony/tests/Unit/Domain/ParameterManagement/ParameterFactoryTest.php

23 lines
698 B
PHP
Raw Normal View History

2019-03-28 19:15:02 +01:00
<?php
2019-03-28 19:15:24 +01:00
namespace tests\Unit\Domain\ParameterManagement;
2019-03-28 19:15:02 +01:00
use PHPUnit\Framework\TestCase;
use Infinito\Domain\ParameterManagement\ParameterFactory;
use Infinito\Domain\ParameterManagement\Parameter\VersionParameter;
/**
* @author kevinfrantz
*/
class ParameterFactoryTest extends TestCase
{
2019-03-28 19:15:24 +01:00
public function testAllParameters(): void
{
2019-03-28 19:15:02 +01:00
$parameterFactory = new ParameterFactory();
$allParameters = $parameterFactory->getAllParameters();
$versionParameter = $allParameters->get('version');
$this->assertInstanceOf(VersionParameter::class, $versionParameter);
$this->assertEquals($versionParameter, $parameterFactory->getParameter('version'));
}
}