Skip to content

Conversation

@popovserhii
Copy link

Related to #182

public function canMergeActionAndRouterConfig()
{
return $this->mergeActionAndRouterConfig;
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To prevent potential regression in future releases, I will ask you to test that default configuration is set to false.
Test class for this file can be found here:
https://github.com/widmogrod/zf2-assetic-module/blob/master/tests/AsseticBundleTest/Configuration.php

$config = $this->getRouterConfig();
$mergeConfigs = $this->configuration->canMergeActionAndRouterConfig();
if ($mergeConfigs) {
$config = array_merge($routerConfig, $config);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would you verify that merging returns the expected result?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I use this in my project on production and all works as expected.
If you about tests, OK, I'll add some.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants