Files
redmine-bundle/tests/DependencyInjection/ConfigurationTest.php

32 lines
762 B
PHP
Raw Normal View History

2023-04-25 15:09:11 +02:00
<?php declare(strict_types=1);
2023-04-25 15:00:03 +02:00
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']);
2023-04-25 15:00:03 +02:00
}
public function configsProvider(): iterable
{
yield [[
'magdev_redmine' => [
'ttl' => 1800
2023-04-25 15:00:03 +02:00
],
]];
2023-04-25 15:00:03 +02:00
}
}