Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions console-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,3 +310,13 @@ Deletes records in "system_files" table that do not belong to any other model.
To also delete records that have no associated file in the local storage, pass the `--missing-files` option.

php artisan winter:util purge orphans --missing-files

<a name="winter-test"></a>
#### Run unit tests

Runs the unit tests for the entire project, a specific plugin, or the Winter CMS core.

To run the entire project's unit tests:

```bash
php artisan winter:test
4 changes: 2 additions & 2 deletions help-unit-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<a name="testing-plugins"></a>
## Testing plugins

Individual plugin test cases can be run by running `../../../vendor/bin/phpunit` in the plugin's base directory (ex. `plugins/acme/demo`.
Individual plugin test cases can be run by running [the `winter:test` command](./console/commands/#winter-test) with the `--p|plugin=` option.

### Creating plugin tests

Expand Down Expand Up @@ -102,7 +102,7 @@ To perform unit testing on the core Winter files, you should download a developm

### Unit tests

Unit tests can be performed by running `vendor/bin/phpunit` in the root directory of your Winter CMS installation.
Unit tests can be performed by running [the `winter:test` command](./console/commands/#winter-test) with the `--o|-core` option.

### Functional tests

Expand Down