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

[Catalog Promotion][Test] Assert proper batch size configuration #13594

Conversation

lchrusciel
Copy link
Member

Q A
Branch? 1.11
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
License MIT

Additional validation in configuration tree with related tests. Based on #13587

@lchrusciel lchrusciel requested a review from a team as a code owner February 3, 2022 14:02
@lchrusciel lchrusciel added DX Issues and PRs aimed at improving Developer eXperience. Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.). labels Feb 3, 2022
@lchrusciel lchrusciel force-pushed the changing-batch-size-to-be-part-of-catalog-promo branch 4 times, most recently from 662d4b7 to c854c9d Compare February 3, 2022 14:42
@lchrusciel lchrusciel force-pushed the changing-batch-size-to-be-part-of-catalog-promo branch from c854c9d to 2a0d4f3 Compare February 3, 2022 14:56
Comment on lines +60 to +62
->ifTrue(function (int $batchSize): bool {
return $batchSize <= 0;
})
Copy link
Member

Choose a reason for hiding this comment

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

->ifTrue(fn(int $batchSize): bool => $batchSize <= 0)? 😄


/**
* @test
*/
Copy link
Member

Choose a reason for hiding this comment

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

What about oneliner /** @test */?

@Zales0123 Zales0123 merged commit a310c2d into Sylius:1.11 Feb 4, 2022
@Zales0123
Copy link
Member

Thank you, Łukasz! 🎉

lchrusciel added a commit that referenced this pull request Feb 4, 2022
…s0123)

This PR was merged into the 1.11 branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | 1.11
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets |
| License         | MIT

Applying comments from #13594, I've also enabled some tests that were not run at all 💃 

Commits
-------

19ba403 Arrow function in configuration
82e4b96 Enable tests that were not tagged as tests
@lchrusciel lchrusciel deleted the changing-batch-size-to-be-part-of-catalog-promo branch February 8, 2022 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX Issues and PRs aimed at improving Developer eXperience. Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants