use recent file layout and make this stuff work

This commit is contained in:
2024-09-13 03:22:19 +02:00
parent 30b61b5064
commit 93d2fa6531
5 changed files with 10 additions and 39 deletions

View File

@@ -17,23 +17,15 @@ class ConfigurationTest extends TestCase
public function testConfig(array $configs): void
{
$config = (new Processor())->processConfiguration(new Configuration(), $configs);
$this->assertSame('foo', $config['connections']['default']['apikey']);
$this->assertSame('bar', $config['connections']['default']['url']);
$this->assertSame(1800, $config['ttl']);
}
public function configsProvider(): iterable
{
yield [
[
'magdev_redmine' => [
'connections' => [
'default' => [
'apikey' => 'foo',
'url' => 'bar'
],
],
],
yield [[
'magdev_redmine' => [
'ttl' => 1800
],
];
]];
}
}