public function PackageTest::testAppendConfig in Features 8.3
Same name and namespace in other branches
- 8.4 tests/src/Unit/PackageTest.php \Drupal\Tests\features\Unit\PackageTest::testAppendConfig()
The test append config.
@depends testGetConfig @covers ::appendConfig
File
- tests/
src/ Unit/ PackageTest.php, line 88
Class
- PackageTest
- @coversDefaultClass \Drupal\features\Package @group features
Namespace
Drupal\Tests\features\UnitCode
public function testAppendConfig(Package $package) {
$package
->appendConfig('test_config_a');
$package
->appendConfig('test_config_c');
$this
->assertEquals([
'test_config_a',
'test_config_b',
'test_config_c',
], array_values($package
->getConfig()));
return $package;
}