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
],
];
]];
}
}

View File

@@ -18,10 +18,7 @@ class MagdevRedmineExtensionTest extends TestCase
(new MagdevRedmineExtension())->load([
'magdev_redmine' => [
'connections' => [
'primary' => ['url' => 'http://foo1', 'apikey' => 'bar1'],
'secondary' => ['url' => 'http://foo2', 'apikey' => 'bar2'],
],
'ttl' => 1800,
],
], $container);