September 2017
Intermediate to advanced
244 pages
6h 44m
English
API needs REST client to fetch RESTful web service endpoints. Other than that it depends on Lumen. We said Lumen because it will be integrated with our code as we are writing functional level tests not acceptance tests. So, our testing framework should have insight and interaction with Lumen. What else will we need in our configuration? We need to set the testing .env file. So, with that here is what our configuration file looks like:
class_name: ApiTestermodules: enabled: - REST: url: /api/v1 depends: Lumen - \Helper\Api config: - Lumen: environment_file: .env.testing
Before proceeding further, note that we have specified a different environment file option here under the config/Lumen, that is, environment_file: ...
Read now
Unlock full access