-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pulling latest commits #41
Conversation
Hi Carlo, We keep debating this convention and strict validation. The current thought was that by using and enforcing lowercase then this reflects the string you would pass to the Mage::getModel and other factory methods when following Magento best practices. The vision for the MageTest tools is to coach best practice as well as support development. However if you think this should be re-thought please could you maybe add some comments with example use cases? Regards |
@alistairstead we where discussing this with @drewHunter the other day and I think we might need to rethink this. As usual I'm open to any constructive suggestions. |
Yes it does because in an ideal world you don't want to create a camel cased module/classes sets because as you said we would like to follow Magento best practises, but sometimes we inherit code and we have to deal with it and only in that case it will fail as it is right now. |
I'm still +1 for strict validation within the commands. If you need to spec legacy code you can create the specs manually. That way we reflect the identifiers used internally for the classes. However with Magento 2 this is changing... However this is an open project so other views are welcome. |
Hi Alistair, I have thought this through a lot myself before sending a pull request, but I firstly discovered this when setting it up on my local and try to spec Magento themselves do it with Mage_CurrencySymbol, Mage_PageCache, Magento should live on a case-sensitive environment anyway, so I don't By keeping it this way, it means nobody with such module namespaces can Thanks Kind Regards On Wed, Oct 9, 2013 at 10:04 PM, Alistair Stead notifications@github.comwrote:
Kind Regards Carlo Tasca** |
I very well made case and I think you are right! Will merge ASAP Sent from my iPhone
|
Thanks a million :) On Fri, Oct 18, 2013 at 9:37 PM, Alistair Stead notifications@github.comwrote:
Kind Regards Carlo Tasca** |
@@ -56,7 +56,7 @@ protected function execute(InputInterface $input, OutputInterface $output) | |||
The block alias provided doesn't follow the Magento naming conventions. | |||
Please make sure it looks like the following: | |||
|
|||
vendorname_modulename/blockname | |||
Vendorname_Modulename/Blockname |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
Sorry for bringing it up after merge, but this is not correct.
The recommended magento convention is to do it in lowercase. We can allow uppercase for these special cases with legacy code, but we have to suggest using lowercase in our error messages.
Arturas
See my pull request #46, which reverts changes in messages |
No description provided.