public function FeaturesManagerTest::testDetectMissing in Features 8.3
Same name and namespace in other branches
- 8.4 tests/src/Unit/FeaturesManagerTest.php \Drupal\Tests\features\Unit\FeaturesManagerTest::testDetectMissing()
@covers ::detectMissing
File
- tests/
src/ Unit/ FeaturesManagerTest.php, line 542
Class
- FeaturesManagerTest
- @coversDefaultClass Drupal\features\FeaturesManager @group features
Namespace
Drupal\Tests\features\UnitCode
public function testDetectMissing() {
$package = new Package('test-package', [
'configOrig' => [
'test_config',
'test_config_non_existing',
],
]);
$config_collection = [];
$config_collection['test_config'] = new ConfigurationItem('test_config', []);
$this->featuresManager
->setConfigCollection($config_collection);
$this
->assertEquals([
'test_config_non_existing',
], $this->featuresManager
->detectMissing($package));
}