-
Notifications
You must be signed in to change notification settings - Fork 13
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
[BM-194]: Add CONFIG.md to consolidate lessons learned from several p… #33
base: master
Are you sure you want to change the base?
Conversation
…rojects implementations.
CONFIG.md
Outdated
|
||
Install patches: | ||
This prevents a lot of issues when stating integration tests: | ||
- [patches/fix-db-access-breaking-integration-test.patch](https://github.com/ho-nl/project-paracord.eu/commit/b12d74f1323a11f392a9f89d69806d262e29cae7) |
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.
This is a link to an internal project. Copy to this project?
CONFIG.md
Outdated
Enable TESTS_PARALLEL_RUN in the phpunit.xml file. | ||
|
||
```bash | ||
Foutmelding: Call to undefined method ReflectionMethod::getAttributes() |
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.
English
CONFIG.md
Outdated
### Tips: | ||
Data fixtures as php attributes are available since php8. Traditionally every Magento module makes data fixtures available | ||
via `/dev/test/integration/testsuite/Magento/<module>/_files/<data-fixture>.php`. These can be used when writing your own | ||
data-fixture, demonstrated here: [paid_banktransfer_order.php](https://github.com/ho-nl/project-vaessen-creative.com/blob/feature/integration-tests/app/code/ReachDigital/OrderProcessor/Test/Integration/_files/paid_banktransfer_order.php#L11) |
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.
Private link
CONFIG.md
Outdated
data-fixture, demonstrated here: [paid_banktransfer_order.php](https://github.com/ho-nl/project-vaessen-creative.com/blob/feature/integration-tests/app/code/ReachDigital/OrderProcessor/Test/Integration/_files/paid_banktransfer_order.php#L11) | ||
|
||
However, a cleaner way of adding data fixtures with attributes is demonstrated here: | ||
[PickerJobTest.php](https://github.com/ho-nl/project-paracord.eu/blob/0bf600d67a2375bcd1d703e9031e50ceba1286b3/app/code/ReachDigital/PickerTracker/Test/Integration/PickerJobTest.php#L131-L142) |
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.
Private link
…ing. Changed it to an instruction. Removed private links and provide included examples.
…rojects implementations.