You are here

public function PackageTest::testRemoveConfig in Features 8.4

Same name and namespace in other branches
  1. 8.3 tests/src/Unit/PackageTest.php \Drupal\Tests\features\Unit\PackageTest::testRemoveConfig()

The test remove config.

@depends testAppendConfig @covers ::removeConfig

File

tests/src/Unit/PackageTest.php, line 102

Class

PackageTest
@coversDefaultClass \Drupal\features\Package @group features

Namespace

Drupal\Tests\features\Unit

Code

public function testRemoveConfig(Package $package) {
  $package
    ->removeConfig('test_config_a');
  $this
    ->assertEquals([
    'test_config_b',
    'test_config_c',
  ], array_values($package
    ->getConfig()));
}