Skip to content

Commit 1517659

Browse files
committed
Added syntax highlight
1 parent da73ec4 commit 1517659

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

‎CONTRIBUTING.md‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,31 @@ The unit test files are in the `tests/` directory.
4040

4141
To run the unit tests, just execute:
4242

43-
./vendor/bin/phpunit
43+
```bash
44+
./vendor/bin/phpunit
45+
```
4446

4547
### Functional tests
4648

4749
The functional test files are in the `features/` directory.
4850

4951
Before running the functional tests, you'll need a MySQL user called `wp_cli_test` with the password `password1` that has full privileges on the MySQL database `wp_cli_test`. Running the following as root in MySQL should do the trick:
5052

51-
GRANT ALL PRIVILEGES ON wp_cli_test.* TO "wp_cli_test"@"localhost" IDENTIFIED BY "password1";
53+
```sql
54+
GRANT ALL PRIVILEGES ON wp_cli_test.* TO "wp_cli_test"@"localhost" IDENTIFIED BY "password1";
55+
```
5256

5357
Then, to run the entire test suite:
5458

55-
./vendor/bin/behat --expand
59+
```bash
60+
./vendor/bin/behat --expand
61+
```
5662

5763
Or to test a single feature:
5864

59-
./vendor/bin/behat features/core.feature
65+
```bash
66+
./vendor/bin/behat features/core.feature
67+
```
6068

6169
More info can be found by using `./vendor/bin/behat --help`.
6270

0 commit comments

Comments
 (0)