| @@ 196-223 (lines=28) @@ | ||
| 193 | $this->assertArrayHasKey('web_path', $config['resolvers']['default']); |
|
| 194 | } |
|
| 195 | ||
| 196 | public function testShouldNotOverwriteDefaultLoaderIfDefined() |
|
| 197 | { |
|
| 198 | $config = $this->processConfiguration( |
|
| 199 | new Configuration( |
|
| 200 | array( |
|
| 201 | new WebPathResolverFactory(), |
|
| 202 | ), |
|
| 203 | array( |
|
| 204 | new FooLoaderFactory(), |
|
| 205 | new FileSystemLoaderFactory(), |
|
| 206 | ) |
|
| 207 | ), |
|
| 208 | array(array( |
|
| 209 | 'loaders' => array( |
|
| 210 | 'default' => array( |
|
| 211 | 'foo' => array( |
|
| 212 | 'foo_option' => 'theValue', |
|
| 213 | ), |
|
| 214 | ), |
|
| 215 | ), |
|
| 216 | ||
| 217 | )) |
|
| 218 | ); |
|
| 219 | ||
| 220 | $this->assertArrayHasKey('loaders', $config); |
|
| 221 | $this->assertArrayHasKey('default', $config['loaders']); |
|
| 222 | $this->assertArrayHasKey('foo', $config['loaders']['default']); |
|
| 223 | } |
|
| 224 | ||
| 225 | public function testInjectResolverFactoryConfig() |
|
| 226 | { |
|
| @@ 351-378 (lines=28) @@ | ||
| 348 | $this->assertArrayHasKey('web_path', $config['resolvers']['default']); |
|
| 349 | } |
|
| 350 | ||
| 351 | public function testShouldNotOverwriteDefaultResolverIfDefined() |
|
| 352 | { |
|
| 353 | $config = $this->processConfiguration( |
|
| 354 | new Configuration( |
|
| 355 | array( |
|
| 356 | new BarResolverFactory(), |
|
| 357 | new WebPathResolverFactory(), |
|
| 358 | ), |
|
| 359 | array( |
|
| 360 | new FileSystemLoaderFactory(), |
|
| 361 | ) |
|
| 362 | ), |
|
| 363 | array(array( |
|
| 364 | 'resolvers' => array( |
|
| 365 | 'default' => array( |
|
| 366 | 'bar' => array( |
|
| 367 | 'bar_option' => 'theValue', |
|
| 368 | ), |
|
| 369 | ), |
|
| 370 | ), |
|
| 371 | ||
| 372 | )) |
|
| 373 | ); |
|
| 374 | ||
| 375 | $this->assertArrayHasKey('resolvers', $config); |
|
| 376 | $this->assertArrayHasKey('default', $config['resolvers']); |
|
| 377 | $this->assertArrayHasKey('bar', $config['resolvers']['default']); |
|
| 378 | } |
|
| 379 | ||
| 380 | public function testNewFilterQualitySettings() |
|
| 381 | { |
|