How I can write unit test codes for spryker?
Hi,
Jitesh Sinha from AnnexCloud
Working on Spryker B2C project extension under the AnnexCloud Loyalty platform.
To pass the certification process, I need to write the mock tests and unit tests codes.
I have gone though the spryker docs, but I am confused.
Is there any hands-on where I can get proper exposure or any step-by-step guidelines for the same.
It could be helpful for me to accomplish my task.
Please help me!
Thanks in Advance….
Jitesh Sinha (jsinha@annexcloud.com)
Answers
-
Hi Jitesh!
I could not find any hands-on guide in the Spryker Documentation.
There are 2 important articles to read in the documentation:
After reading them you will understand where to place your unit test and how to run it.
And then you can try to create a unit test like in any other PHP framework. As a reference you can use this test from the B2B shop:
1
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 75 Spryker News
- 920 Developer Corner
- 780 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random