Tests/DependencyInjection/Factory/Loader/StreamLoaderFactoryTest.php 1 location
|
@@ 59-68 (lines=10) @@
|
| 56 |
|
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
| 57 |
|
* @expectedExceptionMessage The child node "wrapper" at path "stream" must be configured. |
| 58 |
|
*/ |
| 59 |
|
public function testThrowIfWrapperNotSetOnAddConfiguration() |
| 60 |
|
{ |
| 61 |
|
$treeBuilder = new TreeBuilder(); |
| 62 |
|
$rootNode = $treeBuilder->root('stream', 'array'); |
| 63 |
|
|
| 64 |
|
$resolver = new StreamLoaderFactory(); |
| 65 |
|
$resolver->addConfiguration($rootNode); |
| 66 |
|
|
| 67 |
|
$this->processConfigTree($treeBuilder, array()); |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
public function testProcessCorrectlyOptionsOnAddConfiguration() |
| 71 |
|
{ |
Tests/DependencyInjection/Factory/Loader/FlysystemLoaderFactoryTest.php 1 location
|
@@ 70-79 (lines=10) @@
|
| 67 |
|
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
| 68 |
|
* @expectedExceptionMessage The child node "filesystem_service" at path "flysystem" must be configured. |
| 69 |
|
*/ |
| 70 |
|
public function testThrowIfFileSystemServiceNotSetOnAddConfiguration() |
| 71 |
|
{ |
| 72 |
|
$treeBuilder = new TreeBuilder(); |
| 73 |
|
$rootNode = $treeBuilder->root('flysystem', 'array'); |
| 74 |
|
|
| 75 |
|
$resolver = new FlysystemLoaderFactory(); |
| 76 |
|
$resolver->addConfiguration($rootNode); |
| 77 |
|
|
| 78 |
|
$this->processConfigTree($treeBuilder, array()); |
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
public function testProcessCorrectlyOptionsOnAddConfiguration() |
| 82 |
|
{ |
Tests/DependencyInjection/Factory/Resolver/AwsS3ResolverFactoryTest.php 1 location
|
@@ 345-354 (lines=10) @@
|
| 342 |
|
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
| 343 |
|
* @expectedExceptionMessage The child node "bucket" at path "aws_s3" must be configured. |
| 344 |
|
*/ |
| 345 |
|
public function testThrowBucketNotSetOnAddConfiguration() |
| 346 |
|
{ |
| 347 |
|
$treeBuilder = new TreeBuilder(); |
| 348 |
|
$rootNode = $treeBuilder->root('aws_s3', 'array'); |
| 349 |
|
|
| 350 |
|
$resolver = new AwsS3ResolverFactory(); |
| 351 |
|
$resolver->addConfiguration($rootNode); |
| 352 |
|
|
| 353 |
|
$this->processConfigTree($treeBuilder, array()); |
| 354 |
|
} |
| 355 |
|
|
| 356 |
|
/** |
| 357 |
|
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |