You've already forked redmine-bundle
use recent file layout and make this stuff work
This commit is contained in:
@@ -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
|
||||
],
|
||||
];
|
||||
]];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user