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

Phpunit tests for Symfony read listener #782

Conversation

loic425
Copy link
Member

@loic425 loic425 commented Nov 10, 2023

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Related tickets
License MIT

Based on #780

@loic425 loic425 requested a review from a team as a code owner November 10, 2023 15:50
@loic425 loic425 force-pushed the phpspec2phpunit/symfony/event-listener-read-listener branch from 4ab1e45 to b545768 Compare November 16, 2023 07:56
@loic425 loic425 mentioned this pull request Nov 16, 2023
@loic425 loic425 force-pushed the phpspec2phpunit/symfony/event-listener-read-listener branch from b545768 to f98f14b Compare November 20, 2023 08:39

$this->operationInitiator->initializeOperation($request)->willReturn($operation);

$request->attributes = $attributes;
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible or makes sense to prophesize attributes directly to $request->attributes?

Copy link
Member Author

Choose a reason for hiding this comment

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

nope, we cannot do that.

Copy link
Member Author

Choose a reason for hiding this comment

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

We also did like that on the old spec file.

@loic425 loic425 force-pushed the phpspec2phpunit/symfony/event-listener-read-listener branch from f98f14b to 3163781 Compare November 20, 2023 15:21
lchrusciel added a commit that referenced this pull request Nov 21, 2023
This PR was merged into the 1.11 branch.

Discussion
----------

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

Based on #782

Commits
-------

45d5b25 Phpunit tests for Symfony read listener
3163781 Improve test of read listener
345475e Init read provider
@lchrusciel lchrusciel merged commit 3163781 into Sylius:1.11 Nov 21, 2023
60 checks passed
@loic425 loic425 deleted the phpspec2phpunit/symfony/event-listener-read-listener branch November 21, 2023 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants