Skip to content

Commit 1245afa

Browse files
committed
DependencyInjection tests
1 parent cdf88cc commit 1245afa

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
namespace Netgen\Bundle\EnhancedBinaryFileBundle\Tests\DependencyInjection;
4+
5+
6+
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
7+
use Netgen\Bundle\EnhancedBinaryFileBundle\DependencyInjection\Configuration;
8+
use PHPUnit\Framework\TestCase;
9+
10+
class ConfigurationTest extends TestCase
11+
{
12+
use ConfigurationTestCaseTrait;
13+
14+
protected function getConfiguration()
15+
{
16+
return new Configuration();
17+
}
18+
19+
public function testConfigurationValuesAreOkAndValid()
20+
{
21+
$this->assertConfigurationIsValid(
22+
[
23+
'netgen_enhanced_ez_binary_file' => [
24+
25+
],
26+
]
27+
);
28+
}
29+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
namespace Netgen\Bundle\EnhancedBinaryFileBundle\Tests\DependencyInjection;
4+
5+
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractExtensionTestCase;
6+
use Netgen\Bundle\EnhancedBinaryFileBundle\DependencyInjection\NetgenEnhancedBinaryFileExtension;
7+
8+
class NetgenEnhancedBinaryFileExtensionTest extends AbstractExtensionTestCase
9+
{
10+
public function testItSetsValidContainerParameters()
11+
{
12+
$this->load();
13+
}
14+
15+
protected function getContainerExtensions()
16+
{
17+
return array(
18+
new NetgenEnhancedBinaryFileExtension(),
19+
);
20+
}
21+
22+
protected function getMinimalConfiguration()
23+
{
24+
return [];
25+
}
26+
}

0 commit comments

Comments
 (0)