public function ConfigOverrideServiceProviderTest::testNotExistingEnvironmentFile in Config override 8
@covers ::alter
File
- tests/
Unit/ ConfigOverrideServiceProviderTest.php, line 21
Class
- ConfigOverrideServiceProviderTest
- @coversDefaultClass \Drupal\config_override\ConfigOverrideServiceProvider @group config_override
Namespace
Drupal\config_override\Tests\UnitCode
public function testNotExistingEnvironmentFile() {
vfsStreamWrapper::register();
new vfsStreamDirectory('drupal');
$sut = new ConfigOverrideServiceProvider();
$container = new ContainerBuilder();
$container
->set('app.root', 'vfs://');
$sut
->alter($container);
$this
->assertEquals([], $container
->getParameter('config_override__environment'));
}