Download the PHP package globegroup/api-test-case without Composer
On this page you can find all versions of the php package globegroup/api-test-case. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download globegroup/api-test-case
More information about globegroup/api-test-case
Files in globegroup/api-test-case
Download globegroup/api-test-case
More information about globegroup/api-test-case
Files in globegroup/api-test-case
Vendor globegroup
Package api-test-case
Short Description GlobeGroup Functional Unit Tests Library for Symfony ^4.3
License MIT
Package api-test-case
Short Description GlobeGroup Functional Unit Tests Library for Symfony ^4.3
License MIT
Please rate this library. Is it a good library?
Informations about the package api-test-case
GlobeGroup Functional Unit Tests Library for Symfony 4.4
composer require globegroup/api-test-case --dev
Every Functional test that you make for your API should extend GlobeGroup\ApiTest\ApiTestCase
This library allows you to easily load fixtures per every test, and restarts the database on before each test.
Installation
Create services.yml file under config/packages/test/
Paste configuration to your newly created services.yml
:
Using
Create new test case that will test one endpoint (ws) that name will tell what is does like:
ListingModelTest
for testing lists,CreatingModelTest
for testing creation of entities or models,DeletingModelTest
for removing, marking as deleted or unassigning,FetchingModelTest
for showing one model/entity,
Every test has to explain what it does in use-case, good practice is to write them assnake_case
Here are some examples:
Changelog:
- v0.1 - ApiTestCase, Traits, loading fixtures, asserting json, asserting status code
- v1.0 - added oauth login, fixed array subset assertion, debug trait, changed to work in transaction
- v1.1 - changed to webtestcase
- v1.2 - added new fixtures way and fixed few problems
All versions of api-test-case with dependencies
PHP Build Version
Package Version
Requires
symfony/phpunit-bridge Version
^4.3
hautelook/alice-bundle Version ^2.5
symfony/http-client Version ^4.3
symfony/console Version ^4.3
symfony/dotenv Version ^4.3
symfony/framework-bundle Version ^4.3
symfony/monolog-bundle Version ^3.4
symfony/orm-pack Version ^1.0
symfony/validator Version ^4.3
symfony/yaml Version ^4.3
phpunit/phpunit Version ^7
ext-json Version *
friendsofsymfony/oauth-server-bundle Version dev-master
symfony/browser-kit Version ^4.3
symfony/flex Version ^1.4
fzaninotto/faker Version ^1.8
hautelook/alice-bundle Version ^2.5
symfony/http-client Version ^4.3
symfony/console Version ^4.3
symfony/dotenv Version ^4.3
symfony/framework-bundle Version ^4.3
symfony/monolog-bundle Version ^3.4
symfony/orm-pack Version ^1.0
symfony/validator Version ^4.3
symfony/yaml Version ^4.3
phpunit/phpunit Version ^7
ext-json Version *
friendsofsymfony/oauth-server-bundle Version dev-master
symfony/browser-kit Version ^4.3
symfony/flex Version ^1.4
fzaninotto/faker Version ^1.8
The package globegroup/api-test-case contains the following files
Loading the files please wait ....