Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 2c23e30

Browse files
Update web-api-functional-testing.md (#8368)
* Update web-api-functional-testing.md Added phpunit_rest.xml Web API functional test. * Update web-api-functional-testing.md * Update web-api-functional-testing.md * trying to address the linting errors * trying again Co-authored-by: Kevin Harper <[email protected]>
1 parent 5095504 commit 2c23e30

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/guides/v2.3/get-started/web-api-functional-testing.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,21 @@ interface AdapterInterface
9999

100100
### Running the Tests {#running}
101101

102-
1. Copy `/dev/tests/api-functional/phpunit_rest.xml.dist` and `phpunit_soap.xml.dist` to `/dev/tests/api-functional/phpunit_rest.xml` and `phpunit_soap.xml`.
102+
1. Copy `dev/tests/api-functional/phpunit_rest.xml.dist` and `phpunit_soap.xml.dist` to `dev/tests/api-functional/phpunit_rest.xml` and `phpunit_soap.xml`.
103103

104104
1. Define the Magento instance URL as a value of `TESTS_BASE_URL`, Test Webservice User as value of `TESTS_WEBSERVICE_USER` and Test Webservice API key as value of `TESTS_WEBSERVICE_APIKEY` in copied file i.e. `phpunit_rest.xml` or `phpunit_soap.xml`.
105105

106-
1. Copy `/dev/tests/api-functional/config/install-config-mysql.php.dist` to `/dev/tests/api-functional/config/install-config-mysql.php`.
106+
1. Copy `dev/tests/api-functional/config/install-config-mysql.php.dist` to `dev/tests/api-functional/config/install-config-mysql.php`.
107107

108-
1. Configure your DB connection and install settings in `/dev/tests/api-functional/config/install-config-mysql.php`. Specify the Magento database. The base URL to access this Magento instance must be the same specified in the `phpunit_rest.xml` or `phpunit_soap.xml` file.
108+
1. Configure your DB connection and install settings in `dev/tests/api-functional/config/install-config-mysql.php`. Specify the Magento database. The base URL to access this Magento instance must be the same specified in the `phpunit_rest.xml` or `phpunit_soap.xml` file.
109109

110-
1. Run `phpunit` using the `/dev/tests/api-functional/phpunit_rest.xml` or `/dev/tests/api-functional/phpunit_soap.xml` configuration file:
110+
1. Run `phpunit` using the `dev/tests/api-functional/phpunit_rest.xml` or `dev/tests/api-functional/phpunit_soap.xml` configuration file::
111+
112+
```bash
113+
vendor/bin/phpunit --config ./dev/tests/api-functional/phpunit_rest.xml
114+
```
115+
116+
or
111117

112118
```bash
113119
vendor/bin/phpunit --config ./dev/tests/api-functional/phpunit_soap.xml

0 commit comments

Comments
 (0)