You've already forked redmine-bundle
32 lines
762 B
PHP
32 lines
762 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace Magdev\RedmineBundle\Tests\DependencyInjection;
|
|
|
|
use Magdev\RedmineBundle\DependencyInjection\Configuration;
|
|
use PHPUnit\Framework\TestCase;
|
|
use Symfony\Component\Config\Definition\Processor;
|
|
|
|
/**
|
|
* @author Marco Grätsch <magdev3.0@gmail.com>
|
|
*/
|
|
class ConfigurationTest extends TestCase
|
|
{
|
|
/**
|
|
* @dataProvider configsProvider
|
|
*/
|
|
public function testConfig(array $configs): void
|
|
{
|
|
$config = (new Processor())->processConfiguration(new Configuration(), $configs);
|
|
$this->assertSame(1800, $config['ttl']);
|
|
}
|
|
|
|
public function configsProvider(): iterable
|
|
{
|
|
yield [[
|
|
'magdev_redmine' => [
|
|
'ttl' => 1800
|
|
],
|
|
]];
|
|
}
|
|
}
|