Closed Webkadabra closed 6 years ago
Guys I'm really sorry I can write a test, if somebody could help that'd be super nice.
@Webkadabra just add your assertion tests for this new property here: https://github.com/luyadev/luya/blob/master/tests/core/web/CompositionTest.php
and run ./vendor/bin/phpunit tests/core/web/CompositionTest
and see if your test works.
This tests shows very clear how to configure a given scenario you might to test: https://github.com/luyadev/luya/blob/master/tests/core/web/CompositionTest.php#L273-L296
@nadar I've PHP 5.6.25 (need PHP 7 for luya-testsuite) and really never wrote tests for PHP
We need a unit test for the core library, this will break to much stuff if does not work as expected. Maybe i have some time.
I encourage you to update your cli env - you will have to do it sooner or later anyway ;-)
@nadar I'm just not really working as a developer at all, I only support/work on one project that's not making any money, and it's on production and it's got PHP 5.6 on server. I will definitely update some time
What are you changing/introducing
Added new option
Composer::$hideDefaultPrefixOnly
When enabled, composition prefixes will be hidden only for default language. Takes effect only whenhidden
option is disabled.What is the reason for changing/introducing
Some websites treat root as default language, and use prefixes for secondary languages, for example:
company.com/about
company.com/fr/about
I'm sorry I don't code tests, hopefully somebody can help.
QA