l0wskilled/api-platform-test

Bundle to ease the test of Endpoints generated by ApiPlatform.

v0.1.18 2020-03-17 07:57 UTC

This package is auto-updated.

Last update: 2020-03-17 11:53:27 UTC


README

Bundle to ease the test of Endpoints generated by ApiPlatform.

You may want to have a look at: https://github.com/epubli/api-platform-traits

Usage

Extend either the OrmApiPlatformTestCase or OdmApiPlatformTestCase.

ORM only

If you need access to the Query Builder call $this->getQueryBuilder(...)

ORM Example Test class

Look at https://bitbucket.org/epubli/epubli4-article/src/master/tests/api/PbookTest.php for an example unit test using this package.