public function FeaturesManagerTest::testGetExportInfoWithoutBundle in Features 8.3
Same name and namespace in other branches
- 8.4 tests/src/Unit/FeaturesManagerTest.php \Drupal\Tests\features\Unit\FeaturesManagerTest::testGetExportInfoWithoutBundle()
@covers ::getExportInfo
File
- tests/
src/ Unit/ FeaturesManagerTest.php, line 949
Class
- FeaturesManagerTest
- @coversDefaultClass Drupal\features\FeaturesManager @group features
Namespace
Drupal\Tests\features\UnitCode
public function testGetExportInfoWithoutBundle() {
$config_factory = $this
->getConfigFactoryStub([
'features.settings' => [
'export' => [
'folder' => 'custom',
],
],
]);
$this->featuresManager = new FeaturesManager($this->root, $this->entityTypeManager, $config_factory, $this->configStorage, $this->configManager, $this->moduleHandler, $this->configReverter, $this->moduleExtensionList);
$package = new Package('test_feature');
$result = $this->featuresManager
->getExportInfo($package);
$this
->assertEquals([
'test_feature',
'modules/custom',
], $result);
}