Skip to content
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

[CatalogPromotions] Manage rules and actions from UI #13052

Merged
merged 7 commits into from Sep 3, 2021

Conversation

Zales0123
Copy link
Member

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Related tickets based on #13048
License MIT

Zrzut ekranu 2021-09-3 o 07 48 44

@Zales0123 Zales0123 added the Feature New feature proposals. label Sep 3, 2021
@Zales0123 Zales0123 requested a review from a team as a code owner September 3, 2021 05:50
@probot-autolabeler probot-autolabeler bot added the Admin AdminBundle related issues and PRs. label Sep 3, 2021
@Zales0123 Zales0123 changed the title [CatalogPromotions][WIP] Manage rules and actions from UI [CatalogPromotions] Manage rules and actions from UI Sep 3, 2021
/**
* @When /^it applies on variants ("[^"]+" variant) and ("[^"]+" variant)$/
*/
public function itAppliesOnVariants(...$variants): void
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
public function itAppliesOnVariants(...$variants): void
public function itAppliesOnVariants(ProductVariantInterface ...$variants): void

/**
* @Then /^it should apply to ("[^"]+" variant) and ("[^"]+" variant)$/
*/
public function itShouldHaveRule(ProductVariantInterface $firstVariant, ProductVariantInterface $secondVariant): void
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
public function itShouldHaveRule(ProductVariantInterface $firstVariant, ProductVariantInterface $secondVariant): void
public function itShouldApplyToVariants(ProductVariantInterface ...$variants): void

and of course adjust the content of this method

@GSadee GSadee merged commit cbb1be6 into Sylius:master Sep 3, 2021
@GSadee
Copy link
Member

GSadee commented Sep 3, 2021

Thank you, Mateusz! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin AdminBundle related issues and PRs. Feature New feature proposals.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants