-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Currency] Introduce immutable code for Currency #3675
Conversation
tuka217
commented
Dec 4, 2015
Q | A |
---|---|
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Deprecations? | no |
Fixed tickets | - |
License | MIT |
Doc PR | - |
6212d54
to
bd7a20b
Compare
|
||
Scenario: Cannot update currency code | ||
When I am editing currency with code "USD" | ||
Then The code field should be disabled |
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.
Lowercase the
.
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.
Why? In all steps after 'Then' we starts sentence with capital letter.
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.
If yes, we should not :) We start with capital "I" and it is correct, due to english grammar rules. However, other words should be wrote down with lowercase (as i.e. Given store has default configuration
).
Moreover, in more abstract way of thinking, we always start sentence with capital letter, because keyword is part of the sentence! 😄 Making behat scenarios more natural means also thinking about them as natural language, I suppose :)
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.
👍
b5c76fb
to
b1f5a92
Compare
public function __construct($type = 'text') | ||
{ | ||
$this->type = $type; | ||
} |
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.
Missing blank line after this.
fec0b82
to
0da7656
Compare
$this->addSql('ALTER TABLE sylius_channel DROP FOREIGN KEY FK_16C8119EECD792C0'); | ||
$this->addSql('DROP INDEX IDX_16C8119E743BF776 ON sylius_channel'); | ||
$this->addSql('DROP INDEX IDX_16C8119EECD792C0 ON sylius_channel'); | ||
$this->addSql('ALTER TABLE sylius_channel DROP default_locale_id, DROP default_currency_id'); |
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.
The migration is incorrect and should be removed.
[CurrencyBundle] Add AddCodeFormSubscriber to CurrencyType [ResourceBundle] Modify AddCodeFormSubscriber to make possible passing type of code field [Currency] Introduce code for Currency
0da7656
to
3ce46f7
Compare
[Currency] Introduce immutable code for Currency
Thank you Ania! |