You are here

public function PackageTest::testGetConfig in Features 8.3

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

File

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

Class

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

Namespace

Drupal\Tests\features\Unit

Code

public function testGetConfig() {
  $package = new Package('test_feature', [
    'config' => [
      'test_config_a',
      'test_config_b',
    ],
  ]);
  $this
    ->assertEquals([
    'test_config_a',
    'test_config_b',
  ], $package
    ->getConfig());
  return $package;
}