8000 Add a test suite · Issue #7 · dunglas/ShopApiPlugin · GitHub
[go: up one dir, main page]

Skip to content
Add a test suite #7
@dunglas

Description

@dunglas

Use api-platform/core#2608 to create a full test suite for the API Platform integration.
If some new helpers must be added (JSON schema assertion, PHP matcher one, utility to run the same test with different standards formats such as JSON-LD, HAL and JSON-API, add them to api-platform/core first).

Start by testing the most useful endpoints. I suggest to "think" about a typical SPA that will consume the API, and to add test to ensure that all necessary endpoints are working properly (eg. first the one to list categories, products, offer, then the one to add something to the cart, then the one to checkout, then the one to create and manage users, orders... and so on). Maybe can be this done in parallel to #8 (disable all endpoints by default, and re-enable them when usful for the hypotetical SPA, and tested).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0