-
-
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
[Core] [Theme] Integration with Sylius platform #4000
Conversation
02470f3
to
4bb9a49
Compare
|
||
Scenario: Unsetting a channel theme | ||
When I unset "France" channel theme | ||
Then any theme should not be used |
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.
Then none of the themes should be used
?
4bb9a49
to
49aa3a6
Compare
Then that theme should be used | ||
|
||
Scenario: Unsetting a channel theme | ||
When I unset "France" channel theme |
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 Given I set theme...
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.
👍
49aa3a6
to
6d4127f
Compare
When I set "Maverick Meerkat" theme to be used by "France" channel | ||
And I set "Vivid Vervet" theme to be used by "Poland" channel | ||
Then "France" channel should use "Maverick Meerkat" theme | ||
And "Poland" channel should use "Vivid Vervet" theme |
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.
I think this scenario should be in separate feature, it is not about the management itself. Actor should be Visitor for this scenario too. Wdyt?
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.
Good point, will change! :)
09259c9
to
db0ce9d
Compare
$channel = $this->channelContext->getChannel(); | ||
|
||
$themeName = $channel->getThemeName(); | ||
return $themeName; |
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.
No need for that early return here.
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.
True, PHPStorm messed up this during extracting.
23819b7
to
8c727ad
Compare
@@ -0,0 +1,33 @@ | |||
@ui-themes |
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.
Should be just @theme
and live inside theme
folder :)
83b64d3
to
8b0bb4c
Compare
ea38652
to
eaaae22
Compare
2163d5a
to
b282063
Compare
@@ -25,6 +25,9 @@ | |||
<parameter key="sylius.behat.context.setup.zone.class">Sylius\Behat\Context\Setup\ZoneContext</parameter> | |||
<parameter key="sylius.behat.context.setup.tax.class">Sylius\Behat\Context\Setup\TaxContext</parameter> | |||
<parameter key="sylius.behat.context.setup.order.class">Sylius\Behat\Context\Setup\OrderContext</parameter> | |||
<parameter key="sylius.behat.context.setup.customer.class">Sylius\Behat\Context\Setup\CustomerContext</parameter> | |||
<parameter key="sylius.behat.context.setup.addressing.class">Sylius\Behat\Context\Setup\AddressingContext</parameter> |
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.
Are these relevant to this PR?
[Core] [Theme] Integration with Sylius platform
Thank you Kamil! 👍 |
[Core] [Theme] Integration with Sylius platform
Themes should be set per channel by default. Based on #4172, #4169, #4156, #4268, #4287, #4292.