Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SebKay committed Jan 7, 2022
1 parent e522a4f commit 1ab5858
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ You can run either all of your tests or a single testsuite with the following co

You can configure certain things by creating a `config.touchstone.php` file in the root of your project.

#### Directories For Tests

Here's how to set the directories for where your tests are located:

```php
Expand All @@ -118,6 +120,8 @@ return [
];
```

#### Plugins

Here's how to load plugins which are loaded before each test.

This means for a plugin like ACF (Advanced Custom Fields) you can use functions like `get_field()` in your code and it won't break your tests.
Expand All @@ -143,6 +147,21 @@ return [
bin/plugins
```

#### Theme

Here's how to load a theme which is active for each test.

```php
<?php
# config.touchstone.php

return [
'theme' => [
'root' => dirname(__FILE__) . '/../../themes/twentytwentyone',
],
];
```

---

## Composer Scripts
Expand Down

0 comments on commit 1ab5858

Please sign in to comment.