Add PackageNameTest to ConfigurationTest also add in the changelog the corresponding entry to this PR
This commit is contained in:
parent
30b6a4f7bf
commit
5c58b6e875
@ -211,6 +211,35 @@ class ConfigurationTest extends TestCase
|
||||
$this->assertEquals($defaultConfig, $config['assets']);
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider provideValidAssetsPackageNameConfigurationTests
|
||||
*/
|
||||
public function testValidAssetsPackageNameConfiguration($packageName)
|
||||
{
|
||||
$processor = new Processor();
|
||||
$configuration = new Configuration(true);
|
||||
$config = $processor->processConfiguration($configuration, [
|
||||
[
|
||||
'assets' => [
|
||||
'packages' => [
|
||||
$packageName => [],
|
||||
],
|
||||
],
|
||||
],
|
||||
]);
|
||||
|
||||
$this->assertArrayHasKey($packageName, $config['assets']['packages']);
|
||||
}
|
||||
|
||||
public function provideValidAssetsPackageNameConfigurationTests()
|
||||
{
|
||||
return [
|
||||
['foobar'],
|
||||
['foo-bar'],
|
||||
['foo_bar'],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider provideInvalidAssetConfigurationTests
|
||||
*/
|
||||
|
Reference in New Issue
Block a user